Game for 4180 Lab4

Dependencies:   4DGL-uLCD-SE 4180_lab4_tank_war_game Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player

Dependents:   4180_lab4_tank_war_game

Revision:
0:ffed9a3bc797
diff -r 000000000000 -r ffed9a3bc797 Tank/tank.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Tank/tank.h	Mon Mar 13 21:23:17 2017 +0000
@@ -0,0 +1,44 @@
+#ifndef TANK_H__
+#define TANK_H__
+
+// This class describes a tank. You may need to add
+// additional member variables (and maybe even member functions)
+// to draw your super cool new tank. 
+
+class Tank {
+    public:
+    
+        int x, y;               // Keep track of your tank's position.
+        int w;                  // Tank width.
+        int h;                  // Tank height. 
+        int tank_color;         // Tank color. Duh :)
+        float barrel_theta;     // Barrel angle. 
+        int barrel_length;      // Length of the barrel.
+        int wheel_rad;          // Radius of the wheels.
+        
+        int SKY_COLOR; // sky color
+        
+        // Construct a tank given its starting position (sx, sy),
+        // its width and height, and its color.
+        Tank(int sx, int sy, int width, int height, int color);
+        
+        // Calculate the bounding box of your tank for collision checking.
+        int min_x(void);
+        int min_y(void);
+        int max_x(void);
+        int max_y(void);
+        
+        // changeSky
+        void changeSky(int SKY_COLOR2);
+        
+        // Calculate the position of the end of the barrel.
+        void barrel_end(int* bx, int* by);
+        
+        // Reposition the tank!
+        void reposition(int dx, int dy, float dtheta);
+        
+        // Draw the tank!
+        void draw();
+};
+
+#endif
\ No newline at end of file