diff engine/core/view/camera.h @ 340:7e5717105212

* Added setId to Layer, Map, Object and Camera * Added setCellGrid to Layer * LayerTool now supports changing layer IDs and cellgrids on existing layers * LayerTool can now create layers with hexagonal tilegrids
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 24 Aug 2009 23:08:53 +0000
parents ed1565a5a2a0
children f27880d4c08c
line wrap: on
line diff
--- a/engine/core/view/camera.h	Mon Aug 24 18:52:49 2009 +0000
+++ b/engine/core/view/camera.h	Mon Aug 24 23:08:53 2009 +0000
@@ -81,7 +81,11 @@
 
 		/** Gets the identifier for this camera.
 		 */
-		const std::string& getId() { return m_id; }
+		const std::string& getId() const { return m_id; }
+
+		/** Sets the identifier for this camera.
+		 */
+		void setId(const std::string& id) { m_id = id; }
 
 		/** Sets tilt for the camera.
 		 * e.g. overhead camera has tilt 0, while traditional isometric camera has tilt 45