-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.h
More file actions
45 lines (41 loc) · 1.02 KB
/
Node.h
File metadata and controls
45 lines (41 loc) · 1.02 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
#ifndef NODE_H
#define NODE_H
#include <iostream>
#include <cassert>
#include "Location.h"
using namespace std;
const char REQUIRED_ITEM_NOT_SET = '\0';
class Node
{
public:
Node ();
Node (const Node& to_copy);
virtual ~Node ();
Node& operator= (const Node& to_copy);
virtual void debugPrint () const;
virtual Node* getClone () const;
Node (unsigned int description1,
unsigned int north1,
unsigned int south1,
unsigned int east1,
unsigned int west1,
bool is_death1);
unsigned int getDescription () const;
Location getNorth () const;
Location getSouth () const;
Location getEast () const;
Location getWest () const;
bool isDeath () const;
virtual bool isObstructed () const;
virtual char getRequiredItem () const;
virtual unsigned int getDescriptionFailure () const;
virtual unsigned int getDescriptionSuccess () const;
private:
unsigned int description;
unsigned int north;
unsigned int south;
unsigned int east;
unsigned int west;
bool is_death;
};
#endif