aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/world.h')
-rw-r--r--include/world.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h
index 56f1577..228defa 100644
--- a/include/world.h
+++ b/include/world.h
@@ -131,6 +131,8 @@ public:
Village(const char *meme, World *w);
};
+extern Player *player;
+
/**
* The world class. This class does everything a world should do.
*/
@@ -243,6 +245,10 @@ public:
char *setToRight(const char *file);
+ void callUpdate(){
+ this->update(player,deltaTime);
+ }
+
/**
* A vector of pointers to every NPC, Structure, Mob, and Object in this
@@ -256,6 +262,7 @@ public:
*/
std::vector<NPC *> npc;
+ std::vector<Merchant *> merchant;
/**
* A vector of all Structures in this world.
@@ -340,6 +347,7 @@ public:
*/
void addNPC(float x,float y);
+ void addMerchant(float x, float y);
/**
* Adds an object to the world with the specified item id and coordinates.