00001 #ifndef PLAYER_H 00002 #define PLAYER_H 00003 00004 #include "Person.h" 00005 #include "SDL.h" 00006 00007 class Player: public Person 00008 { 00009 public: 00010 Player(List * playerInfo, int x, int y); 00011 void control(); 00012 void update(); 00013 void shootSecondary(); 00014 00015 void collide(Object *o); 00016 00017 virtual Object *copy(); 00018 00019 void addSecondary(std::string filename); 00020 SDL_Rect drawSecondaryAmmo(SDL_Rect raster); 00021 00022 void die(); 00023 virtual void addHealth(int dHealth); 00024 protected: 00025 //collide damage time and wait 00026 //so you can't collide with the boss multiple times and get hurt each time 00027 int _cDWait; 00028 int _cDTime; 00029 Weapon *_secondaryWeapon; 00030 00031 static const int MAXHEALTH = 16; 00032 }; 00033 00034 #endif
1.4.6-NO