aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-11 08:25:57 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-11 08:25:57 -0500
commita0afc9a192016b2bb4c185895a4082cc965e1179 (patch)
tree949464ae46509c8689890f2d5d55da54860bf14f /include/world.h
parente88af920196476ffb5ae182e879f045692cd3ef4 (diff)
Worlds can be themed
Diffstat (limited to 'include/world.h')
-rw-r--r--include/world.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/include/world.h b/include/world.h
index 47e11f5..43da6fc 100644
--- a/include/world.h
+++ b/include/world.h
@@ -145,7 +145,7 @@ protected:
*/
Texturec *bgTex;
-
+
/**
* Defines the set of background images that should be used for this world.
*/
@@ -163,6 +163,8 @@ protected:
*/
char *bgm;
+ std::vector<std::string>bgFiles;
+ std::vector<std::string>bgFilesIndoors;
public:
@@ -234,7 +236,14 @@ public:
* A vector of all light elements in this world.
*/
- std::vector<Light > light;
+ std::vector<Light > light;
+
+ /**
+ * Vector of all building textures for the current world style
+ */
+
+ std::vector<std::string > sTexLoc;
+
/**
* NULLifies pointers and allocates necessary memory. This should be
@@ -257,7 +266,7 @@ public:
* the structure.
*/
- void addStructure(BUILD_SUB subtype,float x,float y,const char *inside);
+ void addStructure(BUILD_SUB subtype,float x,float y, char* tex, const char *inside);
//void addVillage(int buildingCount, int npcMin, int npcMax,const char *inside);
/**
@@ -343,6 +352,12 @@ public:
*/
void setBGM(const char *path);
+
+ /**
+ * Sets the worlds style folder
+ */
+
+ void setStyle(const char* pre);
/**
* Plays/stops this world's BGM. If `prev` is not NULL, that world's BGM