2014-01-16 12:08:24 +01:00
|
|
|
#include "Game.h"
|
|
|
|
#include "Level.h"
|
|
|
|
|
|
|
|
using namespace GameLogic;
|
|
|
|
|
|
|
|
Game::LevelData::LevelData()
|
|
|
|
{
|
2014-01-20 15:47:52 +01:00
|
|
|
this->level = new Level();
|
2014-01-16 12:08:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Game::LevelData::~LevelData()
|
|
|
|
{
|
2014-01-20 15:47:52 +01:00
|
|
|
delete this->level;
|
|
|
|
this->level = 0;
|
|
|
|
}
|
|
|
|
|
2014-01-16 12:08:24 +01:00
|
|
|
|
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-28 15:04:25 +01:00
|
|
|
|
2014-01-20 15:47:52 +01:00
|
|
|
int Game::LevelData::GetID() const
|
|
|
|
{
|
2014-01-28 15:04:25 +01:00
|
|
|
return ((IObjectData*)this->level)->GetID();
|
2014-01-20 15:47:52 +01:00
|
|
|
}
|
|
|
|
OBJECT_TYPE Game::LevelData::GetObjectType() const
|
|
|
|
{
|
2014-01-30 09:40:58 +01:00
|
|
|
return ((IObjectData*)this->level)->GetObjectType();
|
2014-01-28 15:04:25 +01:00
|
|
|
//return OBJECT_TYPE_UNKNOWN;
|
2014-01-20 15:47:52 +01:00
|
|
|
}
|
2014-01-28 15:04:25 +01:00
|
|
|
|
|
|
|
IObjectData* Game::LevelData::GetObjectAt(int ID) const
|
|
|
|
{
|
|
|
|
return this->level->GetObj(ID);
|
|
|
|
}
|