blob: 1f948f2532fe9004374422fec876c31eefb66b4e (
plain)
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
|
#ifndef character_h
#define character_h
#include <ncurses.h>
#include <cstdlib>
#include <vector>
#include <string>
#include "Location.hpp"
using namespace std;
class Character
{
public:
Character(char nSymbol, int nColor,int nRow, int nCol);
void move(Location L);
void draw(WINDOW * w);
bool action(vector <Location> occupied);
bool check(Location L, vector <Location> occupied);
int getRow();
int getCol();
Location getLocation(){return l;}
char getSymbol();
private:
string order = "wander";
Location l;
char symbol;
int row;
int col;
int color;
};
#endif
|