Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MotionSensor
Diff: Entity/Player/Bullets/Bullets.cpp
- Revision:
- 34:1d5b4da3935e
- Parent:
- 33:4f3948dcd2f7
- Child:
- 35:06cd6be999ad
--- a/Entity/Player/Bullets/Bullets.cpp Mon May 06 13:27:26 2019 +0000
+++ b/Entity/Player/Bullets/Bullets.cpp Mon May 06 13:58:39 2019 +0000
@@ -17,7 +17,7 @@
direction = dir;
}
-void Bullets::move(float speed, float unused, int * unused2, bool * unused3)
+void Bullets::move(float speed, float unused, char * unused2, bool * unused3)
{
if (direction == 0) {
position.y -= speed;
@@ -44,7 +44,7 @@
hp -= damage;
}
-bool Bullets::out_of_bounds_check(int * map, bool * doorways)
+bool Bullets::out_of_bounds_check(char * map, bool * doorways)
{
if (entity_to_map_collision_test(position.x, position.y, map, doorways)) {
return true;