Mercurial > fife-parpg
comparison engine/core/model/structures/layer.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 | 51cc05d862f2 |
children | ab41334e8a57 |
comparison
equal
deleted
inserted
replaced
339:0fd74235b34d | 340:7e5717105212 |
---|---|
101 */ | 101 */ |
102 ~Layer(); | 102 ~Layer(); |
103 | 103 |
104 /** Get the id of this layer. | 104 /** Get the id of this layer. |
105 */ | 105 */ |
106 const std::string& getId() { return m_id; } | 106 const std::string& getId() const { return m_id; } |
107 | |
108 /** Sets the identifier for this layer. | |
109 */ | |
110 void setId(const std::string& id) { m_id = id; } | |
107 | 111 |
108 /** Get the map this layer is contained in | 112 /** Get the map this layer is contained in |
109 */ | 113 */ |
110 Map* getMap() const { return m_map; } | 114 Map* getMap() const { return m_map; } |
111 | 115 |
112 /** Get the Cellgrid as set in the constructor | 116 /** Get the Cellgrid |
113 * @return a valid cellgrid | 117 * @return a valid cellgrid |
114 */ | 118 */ |
115 CellGrid* getCellGrid() const { return m_grid; } | 119 CellGrid* getCellGrid() const { return m_grid; } |
120 | |
121 /** Set the Cellgrid | |
122 */ | |
123 void setCellGrid(CellGrid* grid) { m_grid = grid; } | |
116 | 124 |
117 /** Get the instance tree. | 125 /** Get the instance tree. |
118 * @return this layers instance tree. | 126 * @return this layers instance tree. |
119 */ | 127 */ |
120 InstanceTree* getInstanceTree(void) const { return m_instanceTree; } | 128 InstanceTree* getInstanceTree(void) const { return m_instanceTree; } |