-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspace1.hpp
46 lines (41 loc) · 844 Bytes
/
space1.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
/**************************************************
* Program Name: Space1.hpp
* Author: George Lenz
* Date: 3/18/2018
* Description: Header file for space1.
***************************************************/
#ifndef SPACE1_HPP
#define SPACE1_HPP
#include <string>
#include <iostream>
#include "spaces.hpp"
#include "character.hpp"
using namespace std;
class Space1 : public Spaces
{
private:
string key = "O--\"";
public:
Space1(Character* aChar) : Spaces()
{
number = 1;
player = aChar;
for(int i=0; i<height; i++)
{
for(int j=0; j<width; j++)
{
boardPtr[i][j] = "....";
}
}
boardPtr[12][0] = "||..";
boardPtr[12][19] = "..||";
boardPtr[0][10] = ".||.";
boardPtr[23][10] = ".||.";
}
string getKey()
{
return key;
}
void movePlayer(char& aChar);
};
#endif