Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef STUDENTWORLD_H_
- #define STUDENTWORLD_H_
- #include "GameWorld.h"
- #include "Board.h"
- #include <string>
- #include "Actor.h"
- #include <vector>
- // Students: Add code to this file, StudentWorld.cpp, Actor.h, and Actor.cpp
- class StudentWorld : public GameWorld
- {
- public:
- StudentWorld(std::string assetPath);
- ~StudentWorld();
- void add_actor(Actor* actor)
- {
- m_actors.push_back(actor);
- }
- bool is_empty_square(int x, int y)
- {
- return m_board->getContentsOf(x/SPRITE_WIDTH, y/SPRITE_HEIGHT) == Board::empty;
- }
- virtual int init();
- virtual int move();
- virtual void cleanUp();
- private:
- std::vector<Actor*> m_actors;
- Board* m_board;
- Player* m_peach;
- };
- #endif // STUDENTWORLD_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement