-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboss.hpp
More file actions
50 lines (46 loc) · 1.84 KB
/
Copy pathboss.hpp
File metadata and controls
50 lines (46 loc) · 1.84 KB
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
/********************************************************************************************************
** Program Name: Final Project - A Text-based Game- boss.hpp
** Author: Andrew Friedrich
** Date: 06/01/2019
** Description: This file is the Final Project - A Text-based Game - boss.hpp - header
** file. This program contains the spaceLocation of the boss, and the boss encounter with
** Stilbo. Provides for two win conditions, a loss condition and the ability to leave
** the spaceLocation
**
*********************************************************************************************************/
#include "Space.hpp"
#ifndef BOSS_HPP
#define BOSS_HPP
class Boss : public Space
{
private:
// program requirement - space pointer top
Space *top;
// program requirement - space pointer left
Space *left;
// program requirement - space pointer right
Space *right;
// program requirement - space pointer bottom
Space *bottom;
// space_Identifier keeps track of which spaceLocation the player is in
int space_Identifier;
public:
// default constructor
Boss();
// space text description for each unique spaceLocation
virtual void space_Description();
// Space * Boss::space_Options - enables the user
// to interact with the spaceLocation, make choices to go top/bottom/left/right
// and interact with items if available.
virtual Space* space_Options(Player *);
// setting Space pointers for top/bottom/left/right
virtual void setTop(Space *);
virtual void setBottom(Space *);
virtual void setLeft(Space *);
virtual void setRight(Space *);
// return player space/location
virtual int getSpace_Identifier();
// default deconstructor - prevents memory leaks
virtual ~Boss();
};
#endif