A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Entity.cpp@7:4aaa37a711a1, 2019-04-20 (annotated)
- Committer:
- el17sm
- Date:
- Sat Apr 20 22:17:24 2019 +0000
- Revision:
- 7:4aaa37a711a1
- Parent:
- 6:104c2506237e
Implementation of Entity.h and Person.h;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17sm | 7:4aaa37a711a1 | 1 | #include "Entity.h" |
el17sm | 7:4aaa37a711a1 | 2 | |
el17sm | 7:4aaa37a711a1 | 3 | // constructors |
el17sm | 7:4aaa37a711a1 | 4 | |
el17sm | 7:4aaa37a711a1 | 5 | |
el17sm | 7:4aaa37a711a1 | 6 | // accessors |
el17sm | 7:4aaa37a711a1 | 7 | bool Entity::get_moving(){return moving;} |
el17sm | 7:4aaa37a711a1 | 8 | int Entity::get_face(){return face;} |
el17sm | 7:4aaa37a711a1 | 9 | int Entity::get_sprite_width(){return sprite_size.width;} |
el17sm | 7:4aaa37a711a1 | 10 | int Entity::get_sprite_height(){return sprite_size.height;} |
el17sm | 7:4aaa37a711a1 | 11 | int Entity::get_offset_x(){return sprite_size.offset_x;} |
el17sm | 7:4aaa37a711a1 | 12 | int Entity::get_offset_y(){return sprite_size.offset_y;} |
el17sm | 7:4aaa37a711a1 | 13 | int Entity::get_pos_x(){return position.x;} |
el17sm | 7:4aaa37a711a1 | 14 | int Entity::get_pos_y(){return position.y;} |