00001 //-*-Mode: C++;-*- 00002 #ifndef _Door_h_ 00003 #define _Door_h_ 00004 00005 #include "MapSite.h" 00006 00007 //---- Door ----------------------------------------------------------- 00008 00009 // Vorwaertsdeklaration 00010 class Room; 00011 00012 class Door : public MapSite 00013 { 00014 public: 00015 Door(class Room * = 0, class Room * = 0); 00016 virtual ~Door(); 00017 00018 virtual void Enter(); 00019 class Room * OtherSideFrom(class Room *); 00020 00021 virtual void Print(int indent = 0); 00022 00023 private: 00024 class Room * _room1; 00025 class Room * _room2; 00026 bool _isOpen; 00027 }; 00028 00029 #endif