diff engine/core/model/structures/layer.i @ 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 51cc05d862f2
children ab41334e8a57
line wrap: on
line diff
--- a/engine/core/model/structures/layer.i	Mon Aug 24 18:52:49 2009 +0000
+++ b/engine/core/model/structures/layer.i	Mon Aug 24 23:08:53 2009 +0000
@@ -58,9 +58,11 @@
 			Layer(const std::string& identifier, Map* map, CellGrid* geometry);
 			~Layer();
 
-			const std::string& getId();
+			const std::string& getId() const;
+			void setId(const std::string& id);
 
-			CellGrid* getCellGrid() const { return m_grid; }
+			CellGrid* getCellGrid() const;
+			void setCellGrid(CellGrid* grid);
 
 			Map* getMap();
 			bool hasInstances() const;