Added World Object.h
authorIvan Hernandez <iturtleman128@gmail.com>
Sun, 16 Jan 2011 06:06:25 +0000 (00:06 -0600)
committerIvan Hernandez <iturtleman128@gmail.com>
Sun, 16 Jan 2011 06:06:25 +0000 (00:06 -0600)
WorldObject.h [new file with mode: 0644]

diff --git a/WorldObject.h b/WorldObject.h
new file mode 100644 (file)
index 0000000..d9f5787
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef WORLDOBJECT
+#define WORLDOBJECT
+class WorldObject
+{
+       public:
+       void draw();/**< draws Sprite. */
+       void xadd(int num) {mPos.X += num;}/**< Increase X coordiante by a given amount. */
+       void yadd(int num) {mPos.Y += num;}/**< Increase Y coordinate by a given amount. */
+       void xset(int x) {mPos.X = x;}/**< Sets the Sprite's X Coordinate. */
+       void yset(int y) {mPos.Y = y;}/**< Sets the Sprite's Y coordinate.  */
+       void setPosition(int x, int y) {mPos.X = x; mPos.Y = y;}/**< Sets the Sprite's X an Y coordinate. */
+
+       private:
+       Point2D mPos;/**< Object's position */
+       bool mVisible;/**< Determine if Object should be visible */
+       int ZOrder;/**< Stacking order. Determines what draws on top. \todo implement. */
+};
+#endif