Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///File: "Character.h"
- ///Project: "Tilemap.cbp"
- ///
- /// Please refer to main.cpp for more information.
- //Preprocessor Directives
- #ifndef CHARACTER_H
- #define CHARACTER_H
- #include <allegro.h>
- #include <list>
- #include "Projectile.h"
- //End of preprocessor directives
- class Character
- {
- public:
- Character();
- ~Character();
- void Walk(void);
- void Draw(BITMAP *buffer);
- bool CheckCollision();
- void FireWeapon(void);
- private:
- BITMAP *sprite;
- int Xcoordinate;
- int Ycoordinate;
- int DirectionFacing; //Should proberbly be declared as an enum, but i cba. To figure it out, look at the keypad.
- volatile long InputTimer; //Timer so that the game can run @ 30fps, but input is not crazy fast.
- std::list<Projectile> BulletList;
- Projectile Bullet;
- };
- #endif // CHARACTER_H
Advertisement
Add Comment
Please, Sign In to add comment