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

Dependencies:   mbed MotionSensor

Revision:
28:98848e6a77a2
Parent:
27:a1b41626f57c
Child:
29:6b8411bb040a
--- a/Entity/Entity.cpp	Mon Apr 29 10:39:09 2019 +0000
+++ b/Entity/Entity.cpp	Thu May 02 21:30:49 2019 +0000
@@ -1,6 +1,6 @@
 #include "Entity.h"
 
-// functions
+// Functions
 void Entity::undo_move_x(bool status_x)
 {
     if (status_x) {
@@ -33,6 +33,12 @@
 
 // mutators
 
+void Entity::set_position(float x, float y)
+{
+    position.x = x;
+    position.y = y;
+}
+
 void Entity::position_add_x(float change_x)
 {
     position.x += change_x;
@@ -47,6 +53,14 @@
 {
     return moving;
 }
+bool Entity::is_damaged_by_collision()
+{
+    return _damage_self_upon_collision;
+}
+int Entity::get_hp_drop_chance()
+{
+    return _hp_drop_chance;
+}
 int Entity::get_hitbox_width()
 {
     return hitbox.width;
@@ -98,4 +112,8 @@
 int Entity::get_hp()
 {
     return hp;
+}
+float Entity::get_velocity()
+{
+    return velocity;
 }
\ No newline at end of file