Danbias/Code/Game/GameLogic/Game_PlayerData.cpp

50 lines
991 B
C++
Raw Normal View History

#include "Game.h"
#include "Player.h"
using namespace GameLogic;
Game::PlayerData::PlayerData()
{
2014-01-20 15:47:52 +01:00
this->player = new Player();
}
Game::PlayerData::PlayerData(int playerID,int teamID)
{
2014-01-20 15:47:52 +01:00
this->player = new Player();
}
Game::PlayerData::~PlayerData()
{
2014-01-20 15:47:52 +01:00
delete this->player;
}
void Game::PlayerData::Move(const PLAYER_MOVEMENT &movement)
{
this->player->Move(movement);
}
2014-01-16 11:07:45 +01:00
void Game::PlayerData::UseWeapon(const WEAPON_FIRE &usage)
{
2014-01-16 11:07:45 +01:00
this->player->UseWeapon(usage);
}
Oyster::Math::Float3 Game::PlayerData::GetPosition()
{
return this->player->GetPosition();
}
Oyster::Math::Float4x4 Game::PlayerData::GetOrientation()
{
return this->player->GetOrientation();
}
PLAYER_STATE Game::PlayerData::GetState() const
{
return this->player->GetState();
}
int Game::PlayerData::GetID() const
{
return this->player->GetID();
}
int Game::PlayerData::GetTeamID() const
{
return this->player->GetTeamID();
2014-01-20 15:47:52 +01:00
}
OBJECT_TYPE Game::PlayerData::GetObjectType() const
{
return this->player->GetType();
}