summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/Character.hpp6
-rw-r--r--inc/List.hpp18
-rw-r--r--inc/main.hpp1
3 files changed, 24 insertions, 1 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp
index 4e0869a..f2753a9 100644
--- a/inc/Character.hpp
+++ b/inc/Character.hpp
@@ -1,11 +1,14 @@
#ifndef character_h
#define character_h
+#include <ncurses.h>
+
class Character
{
public:
- Character(char nSymbol, int nRow, int nCol);
+ Character(char nSymbol, int nColor,int nRow, int nCol);
void move(int nRow, int nCol);
+ void draw(WINDOW * w);
int getRow();
int getCol();
char getSymbol();
@@ -14,6 +17,7 @@ class Character
char symbol;
int row;
int col;
+ int color;
};
#endif
diff --git a/inc/List.hpp b/inc/List.hpp
new file mode 100644
index 0000000..5f83846
--- /dev/null
+++ b/inc/List.hpp
@@ -0,0 +1,18 @@
+#ifndef list_h
+#define list_h
+
+#include "Character.hpp"
+#include <vector>
+#include <ncurses.h>
+using namespace std;
+
+class List
+{
+ public:
+ List();
+ void draw(WINDOW * w);
+ private:
+ vector <Character> men;
+};
+
+#endif
diff --git a/inc/main.hpp b/inc/main.hpp
index 6d3cae3..441e0d2 100644
--- a/inc/main.hpp
+++ b/inc/main.hpp
@@ -4,5 +4,6 @@
#include "Screen.hpp"
#include "Character.hpp"
#include "Frame.hpp"
+#include "List.hpp"
#endif