Changeset 9348 for code/trunk/src/orxonox/infos/GametypeInfo.h
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/src/orxonox/infos/GametypeInfo.h
r9016 r9348 68 68 { return this->bStarted_; } 69 69 void changedStarted(void); // Is called when the game has changed to started. 70 70 71 71 /** 72 72 @brief Get whether the game has ended yet. … … 108 108 { return this->readyToSpawn_; } 109 109 void changedReadyToSpawn(bool ready); // Inform the GametypeInfo that the local player has changed its spawned status. 110 110 111 111 /** 112 112 @brief Get whether the local player is spawned. … … 119 119 inline const std::string& getHUDTemplate() const 120 120 { return this->hudtemplate_; } 121 122 inline unsigned int getNumberOfPlayers() const123 { return this->spawnedPlayers_.size(); }124 121 125 void sendAnnounceMessage(const std::string& message) ;126 void sendAnnounceMessage(const std::string& message, unsigned int clientID) ;127 void sendKillMessage(const std::string& message, unsigned int clientID) ;128 void sendDeathMessage(const std::string& message, unsigned int clientID) ;129 void sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour) ;130 void sendFadingMessage(const std::string& message, unsigned int clientID) ;122 void sendAnnounceMessage(const std::string& message) const; 123 void sendAnnounceMessage(const std::string& message, unsigned int clientID) const; 124 void sendKillMessage(const std::string& message, unsigned int clientID) const; 125 void sendDeathMessage(const std::string& message, unsigned int clientID) const; 126 void sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour) const; 127 void sendFadingMessage(const std::string& message, unsigned int clientID) const; 131 128 132 void dispatchAnnounceMessage(const std::string& message) ;133 void dispatchKillMessage(const std::string& message) ;134 void dispatchDeathMessage(const std::string& message) ;135 void dispatchStaticMessage(const std::string& message,const ColourValue& colour) ;136 void dispatchFadingMessage(const std::string& message) ;137 129 void dispatchAnnounceMessage(const std::string& message) const; 130 void dispatchKillMessage(const std::string& message) const; 131 void dispatchDeathMessage(const std::string& message) const; 132 void dispatchStaticMessage(const std::string& message,const ColourValue& colour) const; 133 void dispatchFadingMessage(const std::string& message) const; 134 138 135 protected: 139 136 void start(void); // Inform the GametypeInfo that the game has started. … … 165 162 unsigned int counter_; //!< The current integer value of the start countdown, the start countdown counter. 166 163 std::string hudtemplate_; 167 164 168 165 std::set<PlayerInfo*> spawnedPlayers_; //!< A set of players that are currently spawned. 169 166 bool spawned_; //!< Whether the local Player is currently spawned.
Note: See TracChangeset
for help on using the changeset viewer.