Changeset 3196 for code/trunk/src/orxonox/objects/infos
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/infos/Bot.cc
r3110 r3196 29 29 #include "Bot.h" 30 30 31 #include "util/Math.h" 31 32 #include "core/GameMode.h" 32 33 #include "core/CoreIncludes.h" … … 34 35 #include "objects/gametypes/Gametype.h" 35 36 #include "objects/controllers/AIController.h" 36 #include "util/Math.h"37 37 38 38 namespace orxonox … … 66 66 void Bot::setConfigValues() 67 67 { 68 static std::string names[] =68 static const std::string names[] = 69 69 { 70 70 "Dr. Julius No", -
code/trunk/src/orxonox/objects/infos/Bot.h
r2662 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <vector> 34 35 35 #include "PlayerInfo.h" 36 36 -
code/trunk/src/orxonox/objects/infos/GametypeInfo.cc
r3110 r3196 33 33 #include "network/NetworkFunction.h" 34 34 #include "network/Host.h" 35 #include " objects/GametypeMessageListener.h"35 #include "interfaces/GametypeMessageListener.h" 36 36 37 37 namespace orxonox … … 68 68 } 69 69 70 void GametypeInfo::sendAnnounceMessage(const std::string& message) const70 void GametypeInfo::sendAnnounceMessage(const std::string& message) 71 71 { 72 72 if (GameMode::isMaster()) … … 77 77 } 78 78 79 void GametypeInfo::sendAnnounceMessage(const std::string& message, unsigned int clientID) const79 void GametypeInfo::sendAnnounceMessage(const std::string& message, unsigned int clientID) 80 80 { 81 81 if (GameMode::isMaster()) … … 88 88 } 89 89 90 void GametypeInfo::sendKillMessage(const std::string& message, unsigned int clientID) const90 void GametypeInfo::sendKillMessage(const std::string& message, unsigned int clientID) 91 91 { 92 92 if (GameMode::isMaster()) … … 99 99 } 100 100 101 void GametypeInfo::sendDeathMessage(const std::string& message, unsigned int clientID) const101 void GametypeInfo::sendDeathMessage(const std::string& message, unsigned int clientID) 102 102 { 103 103 if (GameMode::isMaster()) … … 110 110 } 111 111 112 void GametypeInfo::dispatchAnnounceMessage(const std::string& message) const112 void GametypeInfo::dispatchAnnounceMessage(const std::string& message) 113 113 { 114 114 for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it) … … 116 116 } 117 117 118 void GametypeInfo::dispatchKillMessage(const std::string& message) const118 void GametypeInfo::dispatchKillMessage(const std::string& message) 119 119 { 120 120 for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it) … … 122 122 } 123 123 124 void GametypeInfo::dispatchDeathMessage(const std::string& message) const124 void GametypeInfo::dispatchDeathMessage(const std::string& message) 125 125 { 126 126 for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it) -
code/trunk/src/orxonox/objects/infos/GametypeInfo.h
r3099 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 34 35 #include "Info.h" 35 36 … … 59 60 { return this->hudtemplate_; } 60 61 61 void sendAnnounceMessage(const std::string& message) const;62 void sendAnnounceMessage(const std::string& message, unsigned int clientID) const;63 void sendKillMessage(const std::string& message, unsigned int clientID) const;64 void sendDeathMessage(const std::string& message, unsigned int clientID) const;62 void sendAnnounceMessage(const std::string& message); 63 void sendAnnounceMessage(const std::string& message, unsigned int clientID); 64 void sendKillMessage(const std::string& message, unsigned int clientID); 65 void sendDeathMessage(const std::string& message, unsigned int clientID); 65 66 66 void dispatchAnnounceMessage(const std::string& message) const;67 void dispatchKillMessage(const std::string& message) const;68 void dispatchDeathMessage(const std::string& message) const;67 void dispatchAnnounceMessage(const std::string& message); 68 void dispatchKillMessage(const std::string& message); 69 void dispatchDeathMessage(const std::string& message); 69 70 70 71 private: -
code/trunk/src/orxonox/objects/infos/HumanPlayer.cc
r3110 r3196 29 29 #include "HumanPlayer.h" 30 30 31 #include "core/GameMode.h"32 31 #include "core/CoreIncludes.h" 33 32 #include "core/ConfigValueIncludes.h" 33 #include "core/GameMode.h" 34 34 #include "network/ClientInformation.h" 35 35 #include "network/Host.h" … … 143 143 float HumanPlayer::getPing() const 144 144 { 145 return ClientInformation::findClient(this->getClientID())->getRTT();145 return static_cast<float>(ClientInformation::findClient(this->getClientID())->getRTT()); 146 146 } 147 147 148 148 float HumanPlayer::getPacketLossRatio() const 149 149 { 150 return ClientInformation::findClient(this->getClientID())->getPacketLoss();150 return static_cast<float>(ClientInformation::findClient(this->getClientID())->getPacketLoss()); 151 151 } 152 152 -
code/trunk/src/orxonox/objects/infos/HumanPlayer.h
r2973 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 34 35 #include "PlayerInfo.h" 35 36 -
code/trunk/src/orxonox/objects/infos/Info.cc
r3110 r3196 28 28 29 29 #include "Info.h" 30 31 30 #include "core/CoreIncludes.h" 32 31 -
code/trunk/src/orxonox/objects/infos/PlayerInfo.cc
r3110 r3196 34 34 #include "network/ClientInformation.h" 35 35 #include "objects/gametypes/Gametype.h" 36 #include "objects/worldentities/ControllableEntity.h" 36 37 37 38 namespace orxonox -
code/trunk/src/orxonox/objects/infos/PongBot.h
r2839 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include "Bot.h" 35 34
Note: See TracChangeset
for help on using the changeset viewer.