summaryrefslogtreecommitdiff
path: root/inc/Character.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Character.hpp')
-rw-r--r--inc/Character.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp
index f2753a9..1f948f2 100644
--- a/inc/Character.hpp
+++ b/inc/Character.hpp
@@ -2,18 +2,28 @@
#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(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;