Revenge of the Mouse

Dependencies:   4DGL-uLCD-SE EthernetInterface Game_Synchronizer LCD_fonts MMA8452 SDFileSystem mbed-rtos mbed wave_player

Fork of 2035_Tanks_Shell by ECE2035 Spring 2015 TA

Committer:
jford38
Date:
Mon Oct 26 02:58:37 2015 +0000
Revision:
14:36c306e26317
Child:
21:edfeb289b21f
Split things into multiple files. Working pretty well now!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jford38 14:36c306e26317 1 #ifndef TANK_H__
jford38 14:36c306e26317 2 #define TANK_H__
jford38 14:36c306e26317 3
jford38 14:36c306e26317 4
jford38 14:36c306e26317 5 class Tank {
jford38 14:36c306e26317 6 public:
jford38 14:36c306e26317 7 int x, y;
jford38 14:36c306e26317 8 int w;
jford38 14:36c306e26317 9 int h;
jford38 14:36c306e26317 10 int tank_color;
jford38 14:36c306e26317 11 float barrel_theta;
jford38 14:36c306e26317 12 int barrel_length;
jford38 14:36c306e26317 13 int wheel_rad;
jford38 14:36c306e26317 14
jford38 14:36c306e26317 15
jford38 14:36c306e26317 16 Tank(int sx, int sy, int width, int height, int color);
jford38 14:36c306e26317 17 int min_x(void);
jford38 14:36c306e26317 18 int min_y(void);
jford38 14:36c306e26317 19 int max_x(void);
jford38 14:36c306e26317 20 int max_y(void);
jford38 14:36c306e26317 21
jford38 14:36c306e26317 22 void barrel_end(int& bx, int& by);
jford38 14:36c306e26317 23
jford38 14:36c306e26317 24 void reposition(int new_x, int new_y, float new_theta);
jford38 14:36c306e26317 25 void draw();
jford38 14:36c306e26317 26 };
jford38 14:36c306e26317 27
jford38 14:36c306e26317 28 #endif