diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-08 08:35:21 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-08 08:35:21 -0500 |
commit | 49411238b04f3510d18617d1498622cf199c617d (patch) | |
tree | 2cd27693a1a4924d5332f592f666ea49a159544e /include/world.h | |
parent | fdd51ab588a2ec9fca54215039803d187a10178e (diff) |
documentation, dialog box borders
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/include/world.h b/include/world.h index 083474a..ccf93a8 100644 --- a/include/world.h +++ b/include/world.h @@ -8,13 +8,18 @@ #ifndef WORLD_H #define WORLD_H -#include <common.h> // For HLINE, vec2, OpenGL utilities, etc. +#include <common.h> #include <entities.h> -#define GEN_INC 10 // Defines at what interval y values should be calculated for the array 'line'. - // As explained in World(), the last few lines in the array 'line' are incorrectly calculated - // or not calculated at all, so GEN_INC is also used to decrease 'lineCount' in functions like draw() - // and detect(). +/** + * Defines at what interval y values should be calculated for the array 'line'. + */ + +#define GEN_INC 10 + +/** + * Defines how many game ticks it takes for a day to elapse. + */ #define DAY_CYCLE 3000 @@ -113,17 +118,30 @@ protected: vec2 *star; + /** + * The Texturec object that holds the background sprites for this world. + */ + Texturec *bgTex; + /** + * The Mix_Music object that holds the background soundtrack for the world. + */ + Mix_Music *bgmObj; + + /** + * The file path of the song wished to be loaded by bgmObj. + */ + char *bgm; public: - /* - * These pointers keep track of worlds that are adjacent to this one. Used in ui.cpp - * for world jumping. - */ + /** + * These pointers keep track of worlds that are adjacent to this one. Used in + * ui.cpp for world jumping. + */ World *toLeft, *toRight, @@ -131,8 +149,10 @@ public: *infront; /* - * Entity arrays. - */ + * These vectors contain the NPCs, Mobs, Structures and Objects that are + * loaded inside the world, with the Entity vector containing pointers to + * the contents of all the others. + */ std::vector<NPC *> npc; std::vector<Structures *> build; |