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.h
- Revision:
- 32:fe6359ef9916
- Child:
- 33:4f3948dcd2f7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Entity/Player/Bullets/Bullets.h Mon May 06 08:56:48 2019 +0000
@@ -0,0 +1,30 @@
+#ifndef BULLETS_H
+#define BULLETS_H
+#include "Entity.h"
+
+class Bullets : public Entity
+{
+
+public:
+ // Constructor
+ Bullets(float, float, int);
+
+ // Functions
+ virtual void move(float, float, int * map, bool * doorways);
+ virtual void draw(N5110 &lcd);
+ virtual void take_damage(int damage);
+ bool out_of_bounds_check(int * map, bool * doorways);
+
+private:
+ // Private Functions
+ int * get_frame();
+ // Member Variable
+ int direction;
+};
+
+const int bullets_sprite[3][3] = {{1,1,1},
+ {1,1,1},
+ {1,1,1}
+};
+
+#endif
\ No newline at end of file