From 0075f9e7997d01fa2105bff38e40a3d5b8b421e6 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Fri, 19 Feb 2016 18:33:29 -0500 Subject: Village work --- include/world.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'include/world.h') diff --git a/include/world.h b/include/world.h index 43da6fc..edf7ebb 100644 --- a/include/world.h +++ b/include/world.h @@ -81,13 +81,29 @@ typedef struct line_t { unsigned char color; /**< Lightness of dirt (brown) */ } line_t; +/* + * Handle all logic that has to do with villages + */ + + +struct Village{ + std::string name; + + std::vector> entity; + std::vector> build; + std::vector> npc; + + Village(const char *meme){ + name = meme; + } +}; + /** * The world class. This class does everything a world should do. */ class World { protected: - /** * The line array. * This array is created through 'new' in World::generate(), with an amount @@ -113,6 +129,8 @@ protected: */ void singleDetect(Entity *e); + + static void villageLogic(World *world); /** * Empties all entity vectors. @@ -244,6 +262,8 @@ public: std::vector sTexLoc; + std::vectorvillage; + /** * NULLifies pointers and allocates necessary memory. This should be -- cgit v1.2.3