diff options
Diffstat (limited to 'src/Data/Room.h')
-rw-r--r-- | src/Data/Room.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Data/Room.h b/src/Data/Room.h index efd67cb..1c1f9e8 100644 --- a/src/Data/Room.h +++ b/src/Data/Room.h @@ -36,7 +36,7 @@ class Room { public: Room(xmlpp::Element *node); - const std::list<Triangle>& getTriangles() { + const std::list<Triangle>& getTriangles() const { return triangles; } @@ -44,9 +44,13 @@ class Room { return id; } - void setId(const Glib::ustring &nid) { - id = nid; - roomNode->set_attribute("id", nid); + void setId(const Glib::ustring &id0) { + id = id0; + roomNode->set_attribute("id", id0); + } + + xmlpp::Element* getNode() const { + return roomNode; } }; |