From afcf5f509a318ee66a16690f204f03dee701722e Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Mon, 4 May 2015 13:51:24 -0500 Subject: process of implementing the unit list, have not compiled or tested --- inc/creature.hpp | 3 ++- inc/list.hpp | 21 +++++++++++++++++++++ inc/main.hpp | 1 + inc/window.hpp | 1 + 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 inc/list.hpp (limited to 'inc') diff --git a/inc/creature.hpp b/inc/creature.hpp index c0e80a7..ab4b328 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -8,7 +8,8 @@ class Creature: public Entity public: Creature(Window m, std::string s); void Behavior(); - void Action(); + void Action(); + private: int xT; int yT; diff --git a/inc/list.hpp b/inc/list.hpp new file mode 100644 index 0000000..6ae906d --- /dev/null +++ b/inc/list.hpp @@ -0,0 +1,21 @@ +#ifndef list_h +#define list_h + +#include "creature.hpp" +#include "resource.hpp" +#include "window.hpp" + +class List +{ + public: + List(Window m); + void Behavior(); + + private: + std::vector R; + std::vector C; + Window main; + int ** L; +}; + +#endif \ No newline at end of file diff --git a/inc/main.hpp b/inc/main.hpp index cb67ab1..4360cf9 100644 --- a/inc/main.hpp +++ b/inc/main.hpp @@ -6,5 +6,6 @@ #include "event.hpp" #include "creature.hpp" #include "resource.hpp" +#include "list.hpp" #endif diff --git a/inc/window.hpp b/inc/window.hpp index d2dd801..b28da56 100644 --- a/inc/window.hpp +++ b/inc/window.hpp @@ -8,6 +8,7 @@ #include #include #include +#include class Window { -- cgit v1.2.3