-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpace.hpp
35 lines (31 loc) · 865 Bytes
/
Space.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
/****************************************************************
** Program name: Final Project
** Author: Milad Mikeal
** Date: 11/23/18
** Description: Space class header file.
****************************************************************/
#ifndef FINALPROJECT_SPACE_HPP
#define FINALPROJECT_SPACE_HPP
class Space {
protected:
Space *top, *right, *left, *bottom;
char type;
public:
Space();
void setTop(Space *);
Space* getTop();
void setRight(Space *);
Space* getRight();
void setLeft(Space *);
Space* getLeft();
void setBottom(Space *);
Space* getBottom();
void setType(char);
char getType();
virtual void setSteps(int) =0;
virtual int getSteps() =0;
virtual void addComrade(Space *) =0;
virtual int numComrades() =0;
virtual ~Space() = default;
};
#endif //FINALPROJECT_SPACE_HPP