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/Bullets/Bullets.h
- Revision:
- 13:d04a6caba40d
- Parent:
- 12:a1c1991835ca
- Child:
- 14:3361879490b2
--- a/Entity/Bullets/Bullets.h Tue Apr 23 22:59:12 2019 +0000
+++ b/Entity/Bullets/Bullets.h Wed Apr 24 02:33:33 2019 +0000
@@ -1,19 +1,23 @@
-//#ifndef BULLETS_H
-//#define BULLETS_H
-//#include "Entity.h"
-//
-//class Bullets : public Entity {
-//
-// public:
-// // Constructor
-// Bullets(float, float);
-//
-// // Functions
-// virtual void move(float x, float y, int);
-// virtual void chkdmg();
-//
-// private:
-// const float bullet_velocity = 0.5;
-//};
-//
-//#endif
\ No newline at end of file
+#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);
+ virtual int * get_frame();
+
+ private:
+ // Member Variable
+ int direction;
+};
+
+const int bullets_sprite[2][2] = {{1,1},
+ {1,1}};
+
+#endif
\ No newline at end of file