Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ENEMYSTATES_H
- #define ENEMYSTATES_H
- #include "Enemy.h"
- namespace EnemyStates {
- // TODO: move to its own file.
- class IEnemyState {
- public:
- virtual void apply(Enemy * enemy) = 0;
- };
- // TODO: move to its own file.
- class IdleState : public IEnemyState {
- public:
- virtual void apply(Enemy * enemy) {
- printf("idle state. !!!!!!!!!!!!!!\n");
- }
- };
- // TODO: move to its own file.
- class FooState : public IEnemyState {
- public:
- virtual void apply(Enemy * enemy) {
- printf("foo state. !!!!!!!!!!!!!!\n");
- }
- };
- IdleState* Idle = new IdleState();
- FooState* Foo = new FooState();
- }
- #endif // ENEMYSTATES_H
Advertisement
Add Comment
Please, Sign In to add comment