A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

Committer:
el17sm
Date:
Tue Apr 23 03:10:09 2019 +0000
Revision:
11:63e54f6e7939
Parent:
10:1a3499f6b583
Child:
13:d04a6caba40d
Added move checks (for entity to group of entity collision checks);; Added a plausible way to update each entity;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17sm 7:4aaa37a711a1 1 #include "Entity.h"
el17sm 7:4aaa37a711a1 2
el17sm 7:4aaa37a711a1 3 // constructors
el17sm 7:4aaa37a711a1 4
el17sm 11:63e54f6e7939 5 void Entity::update_prev_pos(){prev_pos = position;};
el17sm 7:4aaa37a711a1 6
el17sm 7:4aaa37a711a1 7 // accessors
el17sm 7:4aaa37a711a1 8 bool Entity::get_moving(){return moving;}
el17sm 10:1a3499f6b583 9 int Entity::get_hitbox_width(){return hitbox.width;}
el17sm 10:1a3499f6b583 10 int Entity::get_hitbox_height(){return hitbox.height;}
el17sm 7:4aaa37a711a1 11 int Entity::get_face(){return face;}
el17sm 7:4aaa37a711a1 12 int Entity::get_sprite_width(){return sprite_size.width;}
el17sm 7:4aaa37a711a1 13 int Entity::get_sprite_height(){return sprite_size.height;}
el17sm 7:4aaa37a711a1 14 int Entity::get_offset_x(){return sprite_size.offset_x;}
el17sm 7:4aaa37a711a1 15 int Entity::get_offset_y(){return sprite_size.offset_y;}
el17sm 7:4aaa37a711a1 16 int Entity::get_pos_x(){return position.x;}
el17sm 11:63e54f6e7939 17 int Entity::get_pos_y(){return position.y;}
el17sm 11:63e54f6e7939 18 int Entity::get_prev_pos_x(){return prev_pos.x;}
el17sm 11:63e54f6e7939 19 int Entity::get_prev_pos_y(){return prev_pos.y;}