Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
339:0fd74235b34d | 340:7e5717105212 |
---|---|
56 class Layer : public ResourceClass { | 56 class Layer : public ResourceClass { |
57 public: | 57 public: |
58 Layer(const std::string& identifier, Map* map, CellGrid* geometry); | 58 Layer(const std::string& identifier, Map* map, CellGrid* geometry); |
59 ~Layer(); | 59 ~Layer(); |
60 | 60 |
61 const std::string& getId(); | 61 const std::string& getId() const; |
62 void setId(const std::string& id); | |
62 | 63 |
63 CellGrid* getCellGrid() const { return m_grid; } | 64 CellGrid* getCellGrid() const; |
65 void setCellGrid(CellGrid* grid); | |
64 | 66 |
65 Map* getMap(); | 67 Map* getMap(); |
66 bool hasInstances() const; | 68 bool hasInstances() const; |
67 Instance* createInstance(Object* object, const ModelCoordinate& p, const std::string& id=""); | 69 Instance* createInstance(Object* object, const ModelCoordinate& p, const std::string& id=""); |
68 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id=""); | 70 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id=""); |