From 184c6305a677d968e60eb6cba9b29dd840cdce3c Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 13 Apr 2008 01:59:01 +0000 Subject: zoomedit: * New data interfaces, yay! Levels should now be completely editable * Fixed some -Wextra warnings --- src/Data/Room.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/Data/Room.h') diff --git a/src/Data/Room.h b/src/Data/Room.h index 1c1f9e8..e290e36 100644 --- a/src/Data/Room.h +++ b/src/Data/Room.h @@ -20,26 +20,36 @@ #ifndef ZOOMEDIT_DATA_ROOM_H_ #define ZOOMEDIT_DATA_ROOM_H_ -#include "Triangle.h" #include +#include namespace ZoomEdit { namespace Data { +class Triangle; + class Room { private: - std::list triangles; + std::list triangles; xmlpp::Element *roomNode; Glib::ustring id; + // Prevent shallow copy + Room(const Room &o); + Room& operator=(const Room &o); + public: Room(xmlpp::Element *node); + virtual ~Room(); - const std::list& getTriangles() const { + const std::list& getTriangles() const { return triangles; } + Triangle* addTriangle(); + void removeTriangle(Triangle *t); + const Glib::ustring& getId() const { return id; } -- cgit v1.2.3