summaryrefslogtreecommitdiffstats
path: root/src/Data/Gate.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-11 00:47:04 +0200
committerneoraider <devnull@localhost>2008-04-11 00:47:04 +0200
commit7db6adf7e9e178c83f0278124a3d6c786134b014 (patch)
tree26f975f9391def4b2a14289699fb9d245b65ac52 /src/Data/Gate.h
parent84780a8c1d9801e6a2c9f14dd0c17f362ccf7a57 (diff)
downloadzoomedit-7db6adf7e9e178c83f0278124a3d6c786134b014.tar
zoomedit-7db6adf7e9e178c83f0278124a3d6c786134b014.zip
zoomedit:
* TexCoords saves number of used coordinates now. * All data classes save changes in the XML tree now.
Diffstat (limited to 'src/Data/Gate.h')
-rw-r--r--src/Data/Gate.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Data/Gate.h b/src/Data/Gate.h
index 9aa539a..91acbce 100644
--- a/src/Data/Gate.h
+++ b/src/Data/Gate.h
@@ -35,6 +35,28 @@ class Gate {
public:
Gate(xmlpp::Element *node);
+
+ const std::list<Triangle>& getTriangles() {
+ return triangles;
+ }
+
+ const Glib::ustring& getRoom1() const {
+ return room1;
+ }
+
+ void setRoom1(const Glib::ustring &room) {
+ room1 = room;
+ gateNode->set_attribute("room1", room);
+ }
+
+ const Glib::ustring& getRoom2() const {
+ return room2;
+ }
+
+ void setRoom2(const Glib::ustring &room) {
+ room2 = room;
+ gateNode->set_attribute("room2", room);
+ }
};
}