Johan is love, Johan is life

This commit is contained in:
2016-05-19 14:25:03 +02:00
parent a38a6d3c5f
commit 7c4ee37867
82 changed files with 550 additions and 1250 deletions
+14 -31
View File
@@ -1,38 +1,21 @@
#pragma once
#include "Header.h"
#include "Weapon.h"
class Player
#include "Singleton.h"
#include "vector.h"
class Model;
class Player : public Singleton<Player>
{
public:
~Player();
struct Eyes
{
float posX = 0;
float posY = 0;
float posZ = 0;
float rotX = 0;
float rotY = 0;
} eyes;
void Display(void);
//static Player* GetInstance(void);
static Player& GetInstance(void);
void PlayerMoveEyes(const float angle, const float fac, const bool heigth);
void PlayerRotateEyes(const int dx, const int dy);
private:
int level;
int xp;
Weapon* right = nullptr;
Weapon* left = nullptr;
vector<Weapon> weapons;
Player();
Player(Player const&);
void operator=(Player const&);
//static Player* player;
};
void setCamera();
Vec3f position;
Vec2f rotation;
Model* leftWeapon;
Model* rightWeapon;
};