Documentation for C++/SDL 2.0 Tile Engine
Making a simple tile based engine
 All Classes Namespaces Functions Variables Enumerations
player.h
1 #ifndef PLAYER_H
2 #define PLAYER_H
3 
4 #include "SDL.h"
5 #include "../externals/json/json.h"
6 #include "gameobject.h"
7 #include "window.h"
8 #include "base.h"
9 #include "image.h"
10 #include "animatedimage.h"
11 
13 
16 class Player : public GameObject{
17 public:
18  Player();
19  ~Player();
21  void Update();
26  void Move(float deltaT);
31  void Draw(Camera *cam = nullptr);
37  Json::Value Save();
43  void Load(Json::Value val);
44 
45 private:
47  Player(const Player &a);
48  Player& operator = (const Player &a);
49 
50 private:
51  AnimatedImage mAnimatedImage;
52 };
53 
54 #endif