xemerau

Character.h

Nov 3rd, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1. ///File:       "Character.h"
  2. ///Project:    "Tilemap.cbp"
  3. ///
  4. /// Please refer to main.cpp for more information.
  5.  
  6. //Preprocessor Directives
  7. #ifndef CHARACTER_H
  8. #define CHARACTER_H
  9. #include <allegro.h>
  10. #include <list>
  11. #include "Projectile.h"
  12. //End of preprocessor directives
  13.  
  14. class Character
  15. {
  16.     public:
  17.         Character();
  18.         ~Character();
  19.         void Walk(void);
  20.         void Draw(BITMAP *buffer);
  21.         bool CheckCollision();
  22.         void FireWeapon(void);
  23.     private:
  24.         BITMAP *sprite;
  25.         int Xcoordinate;
  26.         int Ycoordinate;
  27.         int DirectionFacing;    //Should proberbly be declared as an enum, but i cba. To figure it out, look at the keypad.
  28.         volatile long InputTimer; //Timer so that the game can run @ 30fps, but input is not crazy fast.
  29.         std::list<Projectile> BulletList;
  30.         Projectile Bullet;
  31. };
  32.  
  33. #endif // CHARACTER_H
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment