diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-21 08:49:20 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-21 08:49:20 -0400 |
commit | 11b1b0c29b3911c04a7d784ac9c0c352851be2c9 (patch) | |
tree | 71a5fc7e56ed8f0f35d56f6dc692a333041b4bae /src/entities.cpp | |
parent | 826e653d45160ceb7c6b8faa2cf44a6af409c2ba (diff) |
documentation part 3
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 2bc5a61..9b87150 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -5,6 +5,9 @@ extern std::vector<Entity*>entity; extern std::vector<NPC>npc; extern std::vector<Structures>build; +extern FILE* names; +extern unsigned int loops; + void Entity::spawn(float x, float y){ //spawns the entity you pass to it based off of coords and global entity settings loc.x = x; loc.y = y; @@ -245,6 +248,7 @@ unsigned int Structures::spawn(_TYPE t, float x, float y){ //spawns a structure loc.y = y; type = t; alive = true; + health = maxHealth = 1; /*VILLAGE*/ //spawns a village |