summaryrefslogtreecommitdiff
path: root/inc/Character.hpp
blob: 3111154d6d2e8c80186ab28f36fcfa0a30bdcdc8 (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
#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, Location L);
        void move(Location L){l=L;}
        void draw(WINDOW * w);
        Location action(vector <Location> occupied);
        bool check(Location L, vector <Location> occupied);        
        Location getLocation(){return l;}
        char getSymbol(){return symbol;}

    private:
        string order = "wander";
        Location l;
        char symbol;
        int row;
        int col;
        int color;
};

#endif