2013-11-19 11:07:14 +01:00
|
|
|
#include "Player.h"
|
2013-11-25 11:03:06 +01:00
|
|
|
#include "OysterMath.h"
|
2013-12-03 11:47:04 +01:00
|
|
|
#include "CollisionManager.h"
|
2013-12-05 11:50:39 +01:00
|
|
|
#include "Weapon.h"
|
2013-11-25 11:03:06 +01:00
|
|
|
|
2013-11-19 11:07:14 +01:00
|
|
|
using namespace GameLogic;
|
2013-11-25 11:03:06 +01:00
|
|
|
using namespace Oyster::Physics;
|
2013-11-19 11:07:14 +01:00
|
|
|
|
2013-12-05 11:50:39 +01:00
|
|
|
struct Player::PrivateData
|
2013-11-19 11:07:14 +01:00
|
|
|
{
|
2013-12-05 11:50:39 +01:00
|
|
|
PrivateData()
|
|
|
|
{
|
|
|
|
weapon = new Weapon();
|
|
|
|
}
|
|
|
|
~PrivateData()
|
|
|
|
{
|
|
|
|
if (weapon)
|
|
|
|
{
|
|
|
|
delete weapon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int life;
|
|
|
|
Weapon *weapon;
|
|
|
|
|
|
|
|
}myData;
|
|
|
|
|
|
|
|
Player::Player()
|
|
|
|
{
|
|
|
|
myData = new PrivateData();
|
|
|
|
|
2013-11-19 11:07:14 +01:00
|
|
|
}
|
|
|
|
Player::~Player(void)
|
|
|
|
{
|
2013-12-05 11:50:39 +01:00
|
|
|
delete myData;
|
2013-11-21 12:05:39 +01:00
|
|
|
}
|
2013-11-29 09:05:01 +01:00
|
|
|
|
2013-12-05 11:50:39 +01:00
|
|
|
void Player::Update()
|
2013-11-21 12:05:39 +01:00
|
|
|
{
|
2013-12-05 11:50:39 +01:00
|
|
|
|
2013-11-21 12:05:39 +01:00
|
|
|
}
|
|
|
|
|
2013-12-05 11:50:39 +01:00
|
|
|
void Player::Move()
|
2013-11-21 12:05:39 +01:00
|
|
|
{
|
2013-12-03 11:47:04 +01:00
|
|
|
|
2013-11-21 12:05:39 +01:00
|
|
|
}
|
|
|
|
void Player::Shoot()
|
|
|
|
{
|
|
|
|
|
2013-11-19 11:07:14 +01:00
|
|
|
}
|