From cf1f5b659873c7eb1557ce7cedc17eed6ca03185 Mon Sep 17 00:00:00 2001
From: Stijn Buys <ingar@osirion.org>
Date: Sun, 21 Dec 2008 18:03:04 +0000
Subject: entity set_color mutators

---
 src/core/entity.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/core/entity.h b/src/core/entity.h
index 01fedc2..c75bd41 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -130,6 +130,12 @@ public:
 	/// find a menu
 	MenuDescription *find_menu(std::string const &label);
 
+	/// assign entity color
+	inline void set_color(const math::Color &color) { entity_color.assign(color); }
+
+	/// assign entity secondary color
+ 	inline void set_color_second(const math::Color &color) { entity_color_second.assign(color); }
+
 /*----- serializers ----------------------------------------------- */
 
 	/// serialize the entity to a stream
-- 
cgit v1.2.3