added weapon and connected it to player

changed player
This commit is contained in:
Erik Persson 2013-11-20 14:18:31 +01:00
parent ce9746f10c
commit abf81b7c3c
4 changed files with 37 additions and 2 deletions

View File

@ -4,6 +4,7 @@ using namespace GameLogic;
Game::Game(void) Game::Game(void)
{ {
} }

View File

@ -2,6 +2,7 @@
#define PLAYER_H #define PLAYER_H
#include "Object.h" #include "Object.h"
#include "Weapon.h"
namespace GameLogic namespace GameLogic
{ {
@ -19,8 +20,8 @@ namespace GameLogic
void Shoot(); void Shoot();
private: private:
//Life int life;
//weapon Weapon *weapon;
}; };
} }

12
Code/GameLogic/Weapon.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "Weapon.h"
using namespace GameLogic;
Weapon::Weapon(void)
{
}
Weapon::~Weapon(void)
{
}

21
Code/GameLogic/Weapon.h Normal file
View File

@ -0,0 +1,21 @@
#ifndef WEAPON_H
#define WEAPON_H
#include "Object.h"
namespace GameLogic
{
class Weapon : public Object
{
public:
Weapon(void);
~Weapon(void);
private:
};
}
#endif