diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-13 10:51:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-13 10:51:48 +0000 |
commit | 0d58c4f8ab1d174c808c77bf94342c91f6e0c443 (patch) | |
tree | 9f32d388ca32dba337739494db2687aa5b2a8225 /src/core/zone.h | |
parent | a41a544a498baf2235348b2edb76781f442651d6 (diff) |
Draw zone colors and background texture on the galactic map.
Diffstat (limited to 'src/core/zone.h')
-rw-r--r-- | src/core/zone.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/core/zone.h b/src/core/zone.h index 22440c4..860c871 100644 --- a/src/core/zone.h +++ b/src/core/zone.h @@ -139,6 +139,14 @@ public: } /** + * @brief return the zone's color + * This is the color used to represent the zone on the galactic map + * */ + const math::Color & color() const { + return zone_color; + } + + /** * @brief returns the galactic location of this zone * */ const math::Vector3f & location() const { @@ -222,7 +230,14 @@ public: * @brief set the information record for this zone * */ void set_info(const Info *info); - + + /** + * @brief set the zone color + * */ + void set_color(const math::Color & color); + + void set_color(float r, float g, float b); + /* ---- serializers ---------------------------------------- */ /** @@ -273,10 +288,12 @@ public: private: unsigned int zone_id; unsigned int zone_flags; - + math::Vector3f zone_location; + math::Color zone_color; + std::string zone_sky; math::Color zone_ambient_color; - math::Vector3f zone_location; + Content zone_content; Entity *zone_defaultview; |