GEJM  1.0.0.0
a 2D platformer made by students
PlayerCreature.h
1 #ifndef PLAYERCREATURE_H
2 #define PLAYERCREATURE_H
3 
4 #include "Creature.h"
5 
12  public Creature
13 {
14 public:
24  PlayerCreature(double x = 0.0, double y = 0.0, double width = 1.0, double height = 1.0, Uint8 health = 3);
25 
30 
37  void onCollision(SolidObject* collider) override;
38 
43  Uint32 getCoins() const;
44 private:
48  Uint32 coins;
49 };
50 
51 #endif // PLAYERCREATURE_H
Definition: Creature.h:74
double x
Definition: Object.h:83
double width
Definition: Object.h:93
double height
Definition: Object.h:98
Uint32 getCoins() const
Definition: PlayerCreature.cpp:76
double y
Definition: Object.h:88
Definition: SolidObject.h:9
Definition: PlayerCreature.h:11
~PlayerCreature()
Definition: PlayerCreature.cpp:28
PlayerCreature(double x=0.0, double y=0.0, double width=1.0, double height=1.0, Uint8 health=3)
Definition: PlayerCreature.cpp:18
Uint8 health
Definition: Creature.h:194
void onCollision(SolidObject *collider) override
Definition: PlayerCreature.cpp:39