xemerau

Projectile.h

Nov 3rd, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. ///File:       "Projectile.h"
  2. ///Project:    "Tilemap.cbp"
  3. ///
  4. /// Please refer to main.cpp for more information.
  5.  
  6. //Preprocessor Directives
  7. #ifndef PROJECTILE_H
  8. #define PROJECTILE_H
  9. #include <allegro.h>
  10. #include <list>
  11. #include <queue>
  12. //End of preprocessor directives
  13.  
  14.  
  15. class Projectile
  16. {
  17.     //Public member functions
  18.     public:
  19.         Projectile(); //Default Constructor
  20.         ~Projectile();
  21.         void MoveProjectile();
  22.         bool CheckForDeath();
  23.         void Initialize(int characterX, int characterY, int characterDirection);
  24.         void Update();
  25.     //End of public member functions
  26.  
  27.     //Private members & member functions
  28.     private:
  29.         BITMAP *projectileImage;
  30.         int Xcoord;
  31.         int Ycoord;
  32.         int DirectionFacing;    //Should proberbly be delared as an enum, but i cba. Look at the numpad to figure it out.
  33.         bool Initialized;
  34.     //End of private members & member functions
  35. };
  36.  
  37. #endif // PROJECTILE_H
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment