-
Notifications
You must be signed in to change notification settings - Fork 0
/
TerrainType.h
32 lines (29 loc) · 985 Bytes
/
TerrainType.h
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
#ifndef TERRAINTYPE_H
#define TERRAINTYPE_H
#include <iostream>
#include "Color.h"
using namespace std;
class TerrainType
{
public:
/** char constructor */
TerrainType(char display = '.', charAttr chAt = WHITEBLACK, bool pass = true, bool see = true);
/** Default destructor */
virtual ~TerrainType();
/** Access displayChar
* \return The current value of displayChar
*/
char getDisplayChar() const {return displayChar;}
void setDisplayChar(char symbol) {displayChar = symbol;}
charAttr getCharAttr() const {return attr;}
void setCharAttr(charAttr symbol) {attr = symbol;}
bool isPassable() const {return passable;}
bool isTransparent() const {return transparent;}
protected:
private:
char displayChar; //!< Member variable "displayChar"
bool passable;
bool transparent;
charAttr attr;
};
#endif // TERRAINTYPE_H