aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-01-07 08:37:49 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-01-07 08:37:49 -0500
commit81cf23371b94baf608c98d0dd248acfbbd5d2c70 (patch)
tree42282b56ce04e17fcc3f61d6b356b6ac72250915 /include/world.h
parentcdd792bc8ba7337e7bd3a9d0b4141c63f17fb9a8 (diff)
parente043a2432c4dacce56a308948188482fb230ff33 (diff)
merge
Diffstat (limited to 'include/world.h')
-rw-r--r--include/world.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/world.h b/include/world.h
index cdcea3c..5021fbb 100644
--- a/include/world.h
+++ b/include/world.h
@@ -29,7 +29,7 @@
* Defines how many game ticks it takes for a day to elapse.
*/
-#define DAY_CYCLE 3000
+#define DAY_CYCLE 12000
/**
* The background type enum.
@@ -54,6 +54,11 @@ typedef enum {
RAIN /**< Rain (not implemented :) )*/
} WEATHER;
+
+typedef struct{
+ vec2 loc;
+ Color color;
+}Light;
/**
* The line structure.
* This structure is used to store the world's ground, stored in vertical
@@ -169,6 +174,7 @@ public:
std::vector<Entity *> entity;
std::vector<Object *> object;
std::vector<Particles *> particles;
+ std::vector<Light > light;
void addStructure(_TYPE t,BUILD_SUB sub,float x,float y,World *inside);
void addVillage(int bCount, int npcMin, int npcMax,_TYPE t,World *inside);
@@ -177,6 +183,7 @@ public:
void addNPC(float x,float y);
void addObject(ITEM_ID, bool, const char *, float, float);
void addParticle(float, float, float, float, float, float, Color color, int);
+ void addLight(vec2, Color);
NPC *getAvailableNPC(void);