Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Revision:
34:1d5b4da3935e
Parent:
33:4f3948dcd2f7
Child:
35:06cd6be999ad
--- a/Entity/Player/Player.cpp	Mon May 06 13:27:26 2019 +0000
+++ b/Entity/Player/Player.cpp	Mon May 06 13:58:39 2019 +0000
@@ -57,7 +57,7 @@
 }
 
 // Functions
-void Player::move(float mapped_x, float mapped_y, int * map, bool * doorways)
+void Player::move(float mapped_x, float mapped_y, char * map, bool * doorways)
 {
     move_player(mapped_x, mapped_y, map, doorways);
     move_bullets();
@@ -65,7 +65,7 @@
     invulnerability_counter++;
 }
 
-void Player::move_player(float mapped_x, float mapped_y, int * map, bool * doorways)
+void Player::move_player(float mapped_x, float mapped_y, char * map, bool * doorways)
 {
     if(!entity_to_map_collision_test(position.x + velocity*mapped_x, position.y, map, doorways)) {
         position.x += velocity*mapped_x;
@@ -123,7 +123,7 @@
     }
 }
 
-bool Player::update_bullets(int * map, bool * doorways)
+bool Player::update_bullets(char * map, bool * doorways)
 {
     bool result = false;
     for (int i = 0; i < bullets_max; i++) {