Changeset 8382 for code/branches/dockingsystem2/src/modules/docking/Dock.h
- Timestamp:
- May 2, 2011, 4:16:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/dockingsystem2/src/modules/docking/Dock.h
r8196 r8382 36 36 #define _Dock_H__ 37 37 38 #include <map> 39 38 40 #include "core/CoreIncludes.h" 39 41 #include "core/XMLPort.h" … … 41 43 42 44 #include "worldentities/StaticEntity.h" 45 #include "notifications/NotificationManager.h" 46 43 47 #include "DockingEffect.h" 44 48 #include "DockingPrereqs.h" 45 49 46 namespace orxonox { 47 50 namespace orxonox { 48 51 49 52 class _DockingExport Dock : public StaticEntity { … … 60 63 const DockingEffect* getEffect(unsigned int index) const; //!< Get the DockingEffect at a given index. 61 64 65 bool dock(PlayerInfo* player); //!< Returns true if given player docked successfully (player must be a candidate) 66 bool undock(PlayerInfo* player); //!< Undocks a player (player must be docked) 67 68 static void cmdDock(); 69 static void cmdUndock(); 70 62 71 private: 63 std::list<DockingEffect*> effects_; //!< The list of DockingEffects to be executed when a player docks. 72 std::set<PlayerInfo*> candidates; //!< A set of all players which are allowed to dock using the console command. 73 std::set<PlayerInfo*> docked; //!< A set of all docked players 74 std::list<DockingEffect*> effects; //!< The list of DockingEffects to be executed when a player docks. 64 75 }; 65 76
Note: See TracChangeset
for help on using the changeset viewer.