-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExitPoint.hpp
56 lines (43 loc) · 2.1 KB
/
ExitPoint.hpp
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Author: Justin Tromp
* Email: [email protected]
* Date Created: 03/12/2019
* Description: ExitPoint class is a child class of Space class and sets an end point for player to win game. Player
* must have medication to be able to access ExitPoint and win game through Player class.
* Variables: doorClosedVisual: Visualization of exit point by character.
* exitPtSolid: Object is solid and should be interacted with from sides.
* interactable: Set object to true as it is an interactable object.
* gameEnd: Set to false initially for game not finished.
* Functions: ExitPoint constructor creates ExitPoint object through Space constructor and takes two int parameters,
* one for row of object and the second for the column of the object.
* Default destructor for ExitPoint class.
* interactObject - ExitPoint object interaction - No interaction performed in ExitPoint class from interaction.
* Exit point is interacted with through player class.
* getGameEnd - Returns gameEnd boolean value, although gameEnd is currently implemented through player class and is
* unused.
* setGameEnd - Sets gameEnd boolean value, although unused. Left in for possible future updates to game.
*/
#ifndef EXITPOINT_HPP
#define EXITPOINT_HPP
#include "Space.hpp"
class ExitPoint : public Space {
private:
//Map output visualization
static const char doorClosedVisual = '*';
static const bool exitPtSolid = true,
interactable = true;
bool gameEnd = false;
public:
//ExitPoint default constructor for door Spaces
ExitPoint(int, int);
//Default destructor for door object
~ExitPoint();
//ExitPoint object interaction - No interaction performed in ExitPoint class from interaction. Exit point is interacted
//with through player class.
void interactObject(Space *inputSpace);
/*FUNCTIONS BELOW ARE INCLUDED BUT CURRENTLY NOT IN USE*/
//Set gameEnd attribute. Takes boolean value to set gameEnd to as parameter.
void setGameEnd(bool inputEnd);
//Get gameEnd attribute, returns boolean value of gameEnd.
bool getGameEnd();
};
#endif //EXITPOINT_HPP