aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-11 08:38:38 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-11 08:38:38 -0500
commit43bbcf02fd5e4e69a9aa521fa4cd572cc8675cf3 (patch)
tree1f9a4def2c1b236e9762dbb8d0b8fe9143b7a9a1 /include
parent2baf10d54f1cbfdb781b9b37987e0815dbdafc3f (diff)
first areas plotted
Diffstat (limited to 'include')
-rw-r--r--include/Texture.h2
-rw-r--r--include/common.h2
-rw-r--r--include/entities.h2
-rw-r--r--include/ui.h2
-rw-r--r--include/world.h8
5 files changed, 10 insertions, 6 deletions
diff --git a/include/Texture.h b/include/Texture.h
index bcd95af..85225d8 100644
--- a/include/Texture.h
+++ b/include/Texture.h
@@ -52,7 +52,7 @@ public:
* Contains an array of the GLuints returned from Texture::loadTexture().
*/
- GLuint *image;
+ GLuint *image = NULL;
/**
* Populates the image array from a list of strings, with each string as a
diff --git a/include/common.h b/include/common.h
index f8bd935..095b3e3 100644
--- a/include/common.h
+++ b/include/common.h
@@ -64,7 +64,7 @@ typedef struct {
* The desired width of the game window.
*/
-#define SCREEN_WIDTH 1280
+#define SCREEN_WIDTH 1024
/**
* The desired height of the game window.
diff --git a/include/entities.h b/include/entities.h
index 64a251a..dd3adab 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -16,7 +16,7 @@
enum _TYPE { //these are the main types of entities
OBJECTT = -2,
- STRUCTURET = -1,
+ STRUCTURET,
PLAYERT,
NPCT,
MOBT
diff --git a/include/ui.h b/include/ui.h
index 97e4bbf..2fe3b0a 100644
--- a/include/ui.h
+++ b/include/ui.h
@@ -60,7 +60,7 @@ namespace ui {
* limited until a right click is given, closing the box.
*/
- void dialogBox(const char *name,const char *opt,const char *text,...);
+ void dialogBox(const char *name,const char *opt,bool passive,const char *text,...);
void waitForDialog(void);
/*
diff --git a/include/world.h b/include/world.h
index ccf93a8..1e78cd0 100644
--- a/include/world.h
+++ b/include/world.h
@@ -17,6 +17,11 @@
#define GEN_INC 10
+
+#define GEN_MIN 80
+#define GEN_MAX 110
+
+
/**
* Defines how many game ticks it takes for a day to elapse.
*/
@@ -194,8 +199,7 @@ public:
*/
void setBGM(const char *path);
- void bgmPlay(void);
- void bgmStop(void);
+ void bgmPlay(World *prev);
/*
* Looks for the furthest back layer in this world and adds a new layer of width `width` behind it.