Saltuk 212

Dependencies:   mbed KS0108

Revision:
0:c7dd8e13fa95
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bullet/Bullet.h	Fri May 31 15:13:48 2019 +0000
@@ -0,0 +1,25 @@
+#ifndef BULLET_H
+#define BULLET_H
+
+#include "mbed.h"
+
+class Bullet{
+    public:
+        Bullet(short pixel, short x, short y, short dir);
+        void move();
+        Bullet* getNext();
+        void setNext(Bullet* newNext);
+        bool willBeRemoved();
+        void getxy(short& xcor, short& ycor);
+        void setCollision();
+        short getDir();
+        short x;
+        short y;
+        short dir;
+        bool collided;
+    
+    private:
+        short pxl;
+        Bullet* next;
+};
+#endif
\ No newline at end of file