Changeset 11783 for code/trunk/src/orxonox
- Timestamp:
- Feb 20, 2018, 12:14:40 AM (7 years ago)
- Location:
- code/trunk
- Files:
-
- 16 edited
- 10 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Highscore.cc
- Property svn:eol-style set to native
r11717 r11783 82 82 /** 83 83 * @brief stores a new highscore in the orxonox.ini file if the new score is better than the highest score so far. 84 * @returns true if the given score marks a new high score 84 85 */ 85 voidHighscore::storeScore(const std::string& level, int points, PlayerInfo* player)86 bool Highscore::storeScore(const std::string& level, int points, PlayerInfo* player) 86 87 { 87 88 if (points > this->getHighestScoreOfGame(level)) 88 89 { 89 90 ModifyConfigValue(highscores_, add, player->getName() + "./." + level + "./." + multi_cast<std::string>(points)); 91 return true; 90 92 } 93 else 94 return false; 91 95 } 92 96 } -
code/trunk/src/orxonox/Highscore.h
- Property svn:eol-style set to native
r11717 r11783 49 49 void setConfigValues(); // Inherited function 50 50 51 voidstoreScore(const std::string& level, int points, PlayerInfo* player);51 bool storeScore(const std::string& level, int points, PlayerInfo* player); 52 52 int getHighestScoreOfGame(const std::string& game); 53 53 -
code/trunk/src/orxonox/OrxonoxPrereqs.h
r11080 r11783 152 152 // overlays 153 153 class InGameConsole; 154 class Map;155 154 class OrxonoxOverlay; 156 155 class OverlayGroup; -
code/trunk/src/orxonox/controllers/CMakeLists.txt
r11052 r11783 19 19 FightingController.cc 20 20 MasterController.cc 21 ArrowController.cc 21 22 ) -
code/trunk/src/orxonox/controllers/DroneController.cc
r11071 r11783 49 49 RegisterObject(DroneController); 50 50 51 this->setTeam(0); 51 52 this->owner_ = nullptr; 52 53 this->drone_ = nullptr; … … 164 165 } 165 166 } 167 166 168 SUPER(AIController, tick, dt); 167 169 } -
code/trunk/src/orxonox/controllers/HumanController.h
r11720 r11783 90 90 { return HumanController::localController_s; } 91 91 static Pawn* getLocalControllerEntityAsPawn(); 92 //friend class, for mouselook93 friend class Map;94 92 95 93 protected: -
code/trunk/src/orxonox/gametypes/StoryMode.cc
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/gametypes/StoryMode.h
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/graphics/Model.cc
r11080 r11783 155 155 this->mesh_.setMaterial(this->materialName_); 156 156 } 157 158 // PRE: a valid Ogre::Entity* entity with a valid subentity at index 159 // POST: changed material of subentity at index to name 160 void Model::setSubMaterial(const std::string& name, const int index){ 161 this->mesh_.setSubMaterial(name, index); 162 } 163 157 164 158 165 void Model::changedShadows() -
code/trunk/src/orxonox/graphics/Model.h
r11080 r11783 86 86 { return this->materialName_; } 87 87 88 void setSubMaterial(const std::string& name, const int index); 89 88 90 protected: 89 91 /** -
code/trunk/src/orxonox/interfaces/RadarViewable.h
r11071 r11783 151 151 return this->uniqueId_; 152 152 } 153 //friend class Map;154 153 155 154 private: -
code/trunk/src/orxonox/worldentities/CMakeLists.txt
r11052 r11783 13 13 ExplosionPart.cc 14 14 Actionpoint.cc 15 NameableStaticEntity.cc 16 Arrow.cc 15 17 ) 16 18 -
code/trunk/src/orxonox/worldentities/pawns/CMakeLists.txt
r10216 r11783 7 7 TeamBaseMatchBase.cc 8 8 Destroyer.cc 9 StoryModePawn.cc 10 ShootableObstacle.cc 9 11 ) -
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r11176 r11783 84 84 // set damage multiplier to default value 1, meaning nominal damage 85 85 this->damageMultiplier_ = 1; 86 this->acceptsPickups_ = true; 86 87 87 88 this->spawnparticleduration_ = 3.0f; -
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r11176 r11783 199 199 { return this->damageMultiplier_; } 200 200 201 // Some pawns can-t harvest pickups (e.g. AsteroidMinables). Checked in PickupSpawner. 202 inline void setPickupAcceptance(bool b) 203 { this->acceptsPickups_ = b; } 204 inline bool doesAcceptPickups() 205 { return this->acceptsPickups_;} 201 206 202 207 virtual void startLocalHumanControl() override; … … 218 223 { return this->weaponSystem_; } 219 224 220 static void consoleCommand_debugDrawWeapons(bool bDraw); 225 static void consoleCommand_debugDrawWeapons(bool bDraw); 226 227 221 228 222 229 protected: … … 256 263 257 264 float damageMultiplier_; ///< Used by the Damage Boost Pickup. 265 bool acceptsPickups_; // Added for the asteroidMinable class, avoid that they attempt to grab the resources 258 266 259 267 WeakPtr<Pawn> lastHitOriginator_;
Note: See TracChangeset
for help on using the changeset viewer.