A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: Entity/Entity.h
- Revision:
- 28:98848e6a77a2
- Parent:
- 27:a1b41626f57c
- Child:
- 29:6b8411bb040a
--- a/Entity/Entity.h Mon Apr 29 10:39:09 2019 +0000 +++ b/Entity/Entity.h Thu May 02 21:30:49 2019 +0000 @@ -39,6 +39,8 @@ int attack; int face; float velocity; + bool _damage_self_upon_collision; + int _hp_drop_chance; public: // Function @@ -51,11 +53,14 @@ void update_prev_pos(); // Mutator + void set_position(float x, float y); void position_add_x(float); void position_add_y(float); // Accessors bool get_moving(); + bool is_damaged_by_collision(); + int get_hp_drop_chance(); int get_hitbox_width(); int get_hitbox_height(); int get_face(); @@ -69,6 +74,7 @@ int get_prev_pos_y(); int get_attack(); int get_hp(); + float get_velocity(); };