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
Diff: Objects/Object.h
- 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