-
Notifications
You must be signed in to change notification settings - Fork 0
/
StudentWorld.h
42 lines (36 loc) · 1.37 KB
/
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
36
37
38
39
40
41
42
#ifndef STUDENTWORLD_H_
#define STUDENTWORLD_H_
#include "GameWorld.h"
#include "Actor.h"
#include "Level.h"
#include <string>
#include <vector>
// Students: Add code to this file, StudentWorld.cpp, Actor.h, and Actor.cpp
class Actors;
class peach;
class StudentWorld : public GameWorld
{
public:
StudentWorld(std::string assetPath);
~StudentWorld();
bool check_overlap(Actors* &object, Actors* a, double X1, double Y1); //checks overlap between items and returns overlap status.
bool check_blocking_object(Actors* &object, Actors* a, double X1, double Y1);
bool check_overlap_peach(Actors* &object, Actors* a, double X1, double Y1);
bool chech_damageable_object(Actors* &object, Actors* a, double X1, double Y1);
bool chech_damageable_object_other_than_peach(Actors* &object, Actors* a, double X1, double Y1);
bool check_overlap_fireball(Actors* &object, Actors* a, double X1, double Y1);
void addtoVector(Actors* x){actors.push_back(x);}
peach* getPeach(){return thepeach;}
virtual int init();
virtual int move();
virtual void cleanUp();
void displayyGameText();
void setlevelFinishedStatus(){is_level_finished = true;}
void setgameFinishedStatus(){is_game_finished = true;}
private:
peach* thepeach;
std::vector<Actors*> actors;
bool is_level_finished;
bool is_game_finished;
};
#endif // STUDENTWORLD_H_