A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Entity/Entity.cpp
- Committer:
- el17sm
- Date:
- 2019-04-23
- Revision:
- 11:63e54f6e7939
- Parent:
- 10:1a3499f6b583
- Child:
- 13:d04a6caba40d
File content as of revision 11:63e54f6e7939:
#include "Entity.h" // constructors void Entity::update_prev_pos(){prev_pos = position;}; // accessors bool Entity::get_moving(){return moving;} int Entity::get_hitbox_width(){return hitbox.width;} int Entity::get_hitbox_height(){return hitbox.height;} int Entity::get_face(){return face;} int Entity::get_sprite_width(){return sprite_size.width;} int Entity::get_sprite_height(){return sprite_size.height;} int Entity::get_offset_x(){return sprite_size.offset_x;} int Entity::get_offset_y(){return sprite_size.offset_y;} int Entity::get_pos_x(){return position.x;} int Entity::get_pos_y(){return position.y;} int Entity::get_prev_pos_x(){return prev_pos.x;} int Entity::get_prev_pos_y(){return prev_pos.y;}