Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CHARACTER_H
- #define CHARACTER_H
- #include "Entity.h"
- #include <string>
- class Character:public Entity
- {
- public:
- enum directions
- {
- EAST,
- WEST,
- NORTH,
- SOUTH
- };
- Character(int X, int Y, std::string sprite, int score);
- int getScore() { return m_score; }
- void move(Character::directions direction);
- void undoMove(Character::directions direction);
- void setX(int X) { m_X = X; }
- void setY(int Y) { m_Y = Y; }
- void increaseScore() { m_score++; }
- protected:
- int m_score;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement