For Nikhil

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

Fork of 2035_Tanks_Shell by ECE2035 Spring 2015 TA

Tank/tank.h

Committer:
jford38
Date:
2015-10-26
Revision:
14:36c306e26317
Child:
21:edfeb289b21f

File content as of revision 14:36c306e26317:

#ifndef TANK_H__
#define TANK_H__


class Tank {
    public:
        int x, y;
        int w;
        int h;
        int tank_color;
        float barrel_theta;
        int barrel_length;
        int wheel_rad;
        
        
        Tank(int sx, int sy, int width, int height, int color);
        int min_x(void);
        int min_y(void);
        int max_x(void);
        int max_y(void);
        
        void barrel_end(int& bx, int& by);
        
        void reposition(int new_x, int new_y, float new_theta);
        void draw();
};

#endif