diff options
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 22 |
1 files changed, 21 insertions, 1 deletions
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<std::shared_ptr<Entity>> entity; + std::vector<std::shared_ptr<Structures>> build; + std::vector<std::shared_ptr<NPC>> 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<std::string > sTexLoc; + std::vector<Village>village; + /** * NULLifies pointers and allocates necessary memory. This should be |