ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
31:70521f37e004
Child:
32:84e79aa7858c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Objects/Object.h	Sat May 16 04:15:46 2020 +0000
@@ -0,0 +1,37 @@
+#ifndef OBJECT_H
+#define OBJECT_H
+
+// holds information about object
+struct ObjectInfo
+{
+    float x; // x pos
+    int y; // y pos
+    int dir; // direction of object
+    char c; // type of object
+};
+
+// keeps track of functions related to Objects
+class Object
+{
+    public:
+    
+        Object();
+        
+        int slow;
+        int medium;
+        int fast;
+        
+        int screenWidth;
+        int screenHeight;
+        
+        ObjectInfo object;
+            
+    public:
+    
+        void setRow(int row);
+        void setSeperation(int seperation);
+        void setSprite(char type);
+    
+};
+
+#endif
\ No newline at end of file