diff options
author | neoraider <devnull@localhost> | 2007-12-14 03:47:03 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-14 03:47:03 +0100 |
commit | a8c1d6168797526b9d24bc8c86f2578f3be59fa8 (patch) | |
tree | 8515976a634b788d99b2c894757a0b4ecbb6fa6a /EditManager.h | |
parent | d82c597917d8ef5866c7a83d0c101f423a2ac05d (diff) | |
download | zoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.tar zoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.zip |
zoomedit: Verallgemeinerte Level-Objekte implementiert.
Diffstat (limited to 'EditManager.h')
-rw-r--r-- | EditManager.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/EditManager.h b/EditManager.h index 6b52389..00729bf 100644 --- a/EditManager.h +++ b/EditManager.h @@ -1,6 +1,7 @@ #ifndef EDITMANAGER_H_ #define EDITMANAGER_H_ +#include "SharedPtr.h" #include "Room.h" #include "IdManager.h" @@ -22,9 +23,9 @@ class EditManager { Window *window; Room newRoom; - Room *activeRoom; + LevelObject *selectedObject; - Room *hoveredRoom; + LevelObject *hoveredObject; Vertex hoveredVertex; bool hasHoveredVertex; @@ -34,6 +35,8 @@ class EditManager { public: EditManager(Window *window); + void update(); + void addRoom(); void finishRoom(); @@ -43,12 +46,12 @@ class EditManager { return mode; } - Room* getActiveRoom() { - return activeRoom; + LevelObject* getSelectedObject() { + return selectedObject; } - Room* getHoveredRoom() { - return hoveredRoom; + LevelObject* getHoveredObject() { + return hoveredObject; } Vertex* getHoveredVertex(); |