-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.hpp
57 lines (49 loc) · 1.03 KB
/
Player.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef PLAYER_HPP_
#define PLAYER_HPP_
// mathematic include
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
// gdl include
#include <SdlContext.hh>
#include <Game.hh>
#include <Clock.hh>
#include <SdlContext.hh>
#include <BasicShader.hh>
#include <Input.hh>
#include <AShader.hh>
// stl
#include <vector>
#include <iostream>
#include "Cube.hpp"
#include "GameMap.hh"
#include "Bomb.hpp"
#include "Character.hpp"
#include "Camera.hpp"
class Player
{
// Attributs
private:
Character *_character;
GameMap &_map;
Camera *_cam;
gdl::SdlContext _context;
gdl::Clock _clock;
gdl::Input _input;
bool _dead;
// Ctor && Dtor
public:
Player(GameMap &);
~Player();
// Methods
public:
Character *getCharacter() const;
bool initCharacter(std::deque<Bomb *> &objects, int);
bool movePlayer(gdl::Clock const& clock, gdl::Input& input);
void draw(gdl::AShader &shader, gdl::Clock const &clock);
float getPosX();
float getPosY();
float getPosZ();
bool getDead() const;
Camera *getCamera();
};
#endif