Danbias/Code/Game/GameLogic/Game_LevelData.cpp

42 lines
771 B
C++
Raw Normal View History

#include "Game.h"
#include "Level.h"
using namespace GameLogic;
Game::LevelData::LevelData()
{
2014-01-20 15:47:52 +01:00
this->level = new Level();
}
Game::LevelData::~LevelData()
{
2014-01-20 15:47:52 +01:00
delete this->level;
this->level = 0;
}
2014-01-20 15:47:52 +01:00
Oyster::Math::Float3 Game::LevelData::GetPosition()
{
//return this->level->GetCenter();
return Oyster::Math::Float3();
}
Oyster::Math::Float4x4 Game::LevelData::GetOrientation()
{
//return this->level->GetOrientation();
return Oyster::Math::Float4x4();
}
2014-01-20 15:47:52 +01:00
int Game::LevelData::GetID() const
{
return ((IObjectData*)this->level)->GetID();
2014-01-20 15:47:52 +01:00
}
OBJECT_TYPE Game::LevelData::GetType() const
2014-01-20 15:47:52 +01:00
{
return ((IObjectData*)this->level)->GetType();
//return OBJECT_TYPE_UNKNOWN;
2014-01-20 15:47:52 +01:00
}
IObjectData* Game::LevelData::GetObjectAt(int ID) const
{
return this->level->GetObj(ID);
}