-
Notifications
You must be signed in to change notification settings - Fork 0
/
StudentWorld.h
35 lines (31 loc) · 906 Bytes
/
StudentWorld.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef STUDENTWORLD_H_
#define STUDENTWORLD_H_
#include "GameWorld.h"
#include "Level.h"
#include <string>
#include "Actor.h"
#include <vector>
// Students: Add code to this file, StudentWorld.cpp, Actor.h, and Actor.cpp
class Actor;
class StudentWorld : public GameWorld
{
public:
StudentWorld(std::string assetPath);
virtual int init();
virtual int move();
virtual void cleanUp();
~StudentWorld();
bool hasOverlap(int startX, int startY, Actor* act);
bool overlapsPeach(int startX, int startY, Actor* act);
std::vector<Actor*> actorsOverlaping(int startX, int startY, Actor* act);
void addActor(Actor* a);
Peach* peachPtr() {return peach;};
int getStatus() {return status;};
void setStatus(int s) {status = s;};
bool peachYOverlap(int y);
private:
std::vector <Actor*> m_actors;
Peach* peach;
int status;
};
#endif // STUDENTWORLD_H_