Changeset 10769 for code/branches/cpp11_v2/src/modules
- Timestamp:
- Nov 7, 2015, 10:23:42 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/designtools/SkyboxGenerator.h
r9667 r10769 106 106 107 107 std::vector<std::string> names_; //!< The names of the image files for the skybox faces to be generated. 108 std::vector< std::pair<int, int> 108 std::vector< std::pair<int, int>> rotations_; //!< The rotation in yaw an pitch direction that is applied to the camera after a specific face has been generated. 109 109 110 110 // Storage variables -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4DgameAI.h
r10230 r10769 81 81 protected: 82 82 83 std::list<std::pair<Timer*, char> 83 std::list<std::pair<Timer*, char>> reactionTimers_; //!< A list of reaction timers and the directions that take effect when their timer expires. 84 84 Mini4DgameCenterpoint* center_; 85 85 -
code/branches/cpp11_v2/src/modules/objects/SpaceBoundaries.cc
r10765 r10769 208 208 float distance; 209 209 bool humanItem; 210 for( std::list<WeakPtr<Pawn> 210 for( std::list<WeakPtr<Pawn>>::iterator current = pawnsIn_.begin(); current != pawnsIn_.end(); current++ ) 211 211 { 212 212 Pawn* currentPawn = *current; -
code/branches/cpp11_v2/src/modules/objects/SpaceBoundaries.h
r9667 r10769 101 101 102 102 // Variabeln:: 103 std::list<WeakPtr<Pawn> 103 std::list<WeakPtr<Pawn>> pawnsIn_; //!< List of the pawns that this instance of SpaceBoundaries has to handle. 104 104 105 105 std::vector<BillboardAdministration> billboards_; -
code/branches/cpp11_v2/src/modules/objects/triggers/DistanceMultiTrigger.cc
r10765 r10769 100 100 101 101 // Check for objects that were in range but no longer are. Iterate through all objects, that are in range. 102 for(std::set<WeakPtr<WorldEntity> 102 for(std::set<WeakPtr<WorldEntity>>::iterator it = this->range_.begin(); it != this->range_.end(); ) 103 103 { 104 104 WorldEntity* entity = *it; … … 261 261 bool DistanceMultiTrigger::addToRange(WorldEntity* entity) 262 262 { 263 std::pair<std::set<WeakPtr<WorldEntity> 263 std::pair<std::set<WeakPtr<WorldEntity>>::iterator, bool> pair = this->range_.insert(entity); 264 264 return pair.second; 265 265 } -
code/branches/cpp11_v2/src/modules/objects/triggers/DistanceMultiTrigger.h
r10624 r10769 153 153 ClassTreeMask beaconMask_; //!< A mask, that only accepts DistanceTriggerBeacons. 154 154 155 std::set<WeakPtr<WorldEntity> 155 std::set<WeakPtr<WorldEntity>> range_; //!< The set of entities that currently are in range of the DistanceMultiTrigger. 156 156 157 157 }; -
code/branches/cpp11_v2/src/modules/objects/triggers/MultiTrigger.h
r10765 r10769 192 192 std::set<BaseObject*> triggered_; //!< The set of all objects the MultiTrigger is triggered for. 193 193 194 std::deque< std::pair<float, MultiTriggerState*>> stateQueue_; //!< The queue of states waiting to become active.194 std::deque<std::pair<float, MultiTriggerState*>> stateQueue_; //!< The queue of states waiting to become active. 195 195 196 196 ClassTreeMask targetMask_; //!< The target mask, masking all objects that can trigger this MultiTrigger. -
code/branches/cpp11_v2/src/modules/objects/triggers/Trigger.h
r9667 r10769 127 127 BillboardSet debugBillboard_; //!< A set of debug billboards to visualize the state of the trigger. 128 128 129 std::queue<std::pair<float, char> 129 std::queue<std::pair<float, char>> stateChanges_; //!< A queue of state changes (in the same format as latestState_) paired with the time they will take effect since the last state change took effect. 130 130 }; 131 131 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.cc
r10768 r10769 187 187 const Matrix4& camTransform = cam->getOgreCamera()->getProjectionMatrix() * cam->getOgreCamera()->getViewMatrix(); 188 188 189 for (std::list<std::pair<RadarViewable*, unsigned int> 189 for (std::list<std::pair<RadarViewable*, unsigned int>>::iterator listIt = this->sortedObjectList_.begin(); listIt != this->sortedObjectList_.end(); ++listIt) 190 190 listIt->second = (int)((listIt->first->getRVWorldPosition() - HumanController::getLocalControllerSingleton()->getControllableEntity()->getWorldPosition()).length() + 0.5f); 191 191 … … 209 209 bool nextHasToBeSelected = false; 210 210 211 for (std::list<std::pair<RadarViewable*, unsigned int> 211 for (std::list<std::pair<RadarViewable*, unsigned int>>::iterator listIt = this->sortedObjectList_.begin(); listIt != this->sortedObjectList_.end(); ++markerCount, ++listIt) 212 212 { 213 213 … … 641 641 } 642 642 643 for (std::list<std::pair<RadarViewable*, unsigned int> 643 for (std::list<std::pair<RadarViewable*, unsigned int>>::iterator listIt = this->sortedObjectList_.begin(); listIt != this->sortedObjectList_.end(); ++listIt) 644 644 { 645 645 if ((listIt->first) == viewable) -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.h
r10291 r10769 141 141 142 142 std::map<RadarViewable*, ObjectInfo> activeObjectList_; 143 std::list<std::pair<RadarViewable*, unsigned int> 143 std::list<std::pair<RadarViewable*, unsigned int>> sortedObjectList_; 144 144 145 145 float healthMarkerSize_; -
code/branches/cpp11_v2/src/modules/pickup/PickupManager.h
r10624 r10769 161 161 std::map<uint32_t, PickupInventoryContainer*>::iterator pickupsIterator_; //!< An iterator pointing to the current Pickupable in pickupsList_. 162 162 163 std::map<uint32_t, WeakPtr<Pickupable> 163 std::map<uint32_t, WeakPtr<Pickupable>> pickups_; //!< Map linking a number identifying a Pickupable to a weak pointer of a Pickupable. 164 164 std::map<Pickupable*, uint32_t> indexes_;//!< Map linking Pickupable to the number identifying it. 165 165 -
code/branches/cpp11_v2/src/modules/pickup/items/ShrinkPickup.cc
r10765 r10769 182 182 183 183 // Iterate over all camera positions and inversely move the camera to create a shrinking sensation. 184 const std::list< StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions();184 const std::list<StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions(); 185 185 int size = cameraPositions.size(); 186 186 for(int index = 0; index < size; index++) … … 208 208 209 209 // Iterate over all camera positions and inversely move the camera to create a shrinking sensation. 210 const std::list< StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions();210 const std::list<StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions(); 211 211 int size = cameraPositions.size(); 212 212 for(int index = 0; index < size; index++) … … 263 263 264 264 // Iterate over all camera positions and inversely move the camera to create a shrinking sensation. 265 const std::list< StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions();265 const std::list<StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions(); 266 266 int size = cameraPositions.size(); 267 267 for(int index = 0; index < size; index++) … … 304 304 305 305 // Iterate over all camera positions and inversely move the camera to create a shrinking sensation. 306 const std::list< StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions();306 const std::list<StrongPtr<CameraPosition>>& cameraPositions = pawn->getCameraPositions(); 307 307 int size = cameraPositions.size(); 308 308 for(int index = 0; index < size; index++) -
code/branches/cpp11_v2/src/modules/pong/PongAI.cc
r10768 r10769 77 77 PongAI::~PongAI() 78 78 { 79 for (std::list<std::pair<Timer*, char> 79 for (std::list<std::pair<Timer*, char>>::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it) 80 80 it->first->destroy(); 81 81 } -
code/branches/cpp11_v2/src/modules/pong/PongAI.h
r9667 r10769 89 89 float strength_; //!< The strength of the AI. Ranging from 0 to 1. 90 90 91 std::list<std::pair<Timer*, char> 91 std::list<std::pair<Timer*, char>> reactionTimers_; //!< A list of reaction timers and the directions that take effect when their timer expires. 92 92 char movement_; //!< The planned movement. 93 93 char oldMove_; //!< The previous movement. -
code/branches/cpp11_v2/src/modules/tetris/Tetris.cc
r10768 r10769 104 104 } 105 105 106 for (std::list<StrongPtr<TetrisStone> 106 for (std::list<StrongPtr<TetrisStone>>::iterator it = this->stones_.begin(); it != this->stones_.end(); ++it) 107 107 (*it)->destroy(); 108 108 this->stones_.clear(); … … 136 136 return false; 137 137 138 for(std::list<StrongPtr<TetrisStone> 138 for(std::list<StrongPtr<TetrisStone>>::const_iterator it = this->stones_.begin(); it != this->stones_.end(); ++it) 139 139 { 140 140 const Vector3& currentStonePosition = (*it)->getPosition(); //!< Saves the position of the currentStone … … 192 192 193 193 // check for collisions with all stones 194 for(std::list<StrongPtr<TetrisStone> 194 for(std::list<StrongPtr<TetrisStone>>::const_iterator it = this->stones_.begin(); it != this->stones_.end(); ++it) 195 195 { 196 196 //Vector3 currentStonePosition = rotateVector((*it)->getPosition(), this->activeBrick_->getRotationCount()); … … 469 469 { 470 470 stonesPerRow = 0; 471 for(std::list<StrongPtr<TetrisStone> 472 { 473 std::list<StrongPtr<TetrisStone> 471 for(std::list<StrongPtr<TetrisStone>>::iterator it = this->stones_.begin(); it != this->stones_.end(); ) 472 { 473 std::list<StrongPtr<TetrisStone>>::iterator it_temp = it++; 474 474 correctPosition = static_cast<unsigned int>(((*it_temp)->getPosition().y - 5)/this->center_->getStoneSize()); 475 475 if(correctPosition == row) … … 491 491 void Tetris::clearRow(unsigned int row) 492 492 {// clear the full row 493 for(std::list<StrongPtr<TetrisStone> 493 for(std::list<StrongPtr<TetrisStone>>::iterator it = this->stones_.begin(); it != this->stones_.end(); ) 494 494 { 495 495 if(static_cast<unsigned int>(((*it)->getPosition().y - 5)/this->center_->getStoneSize()) == row) … … 502 502 } 503 503 // adjust height of stones above the deleted row //TODO: check if this could be a source of a bug. 504 for(std::list<StrongPtr<TetrisStone> 504 for(std::list<StrongPtr<TetrisStone>>::iterator it = this->stones_.begin(); it != this->stones_.end(); ++it) 505 505 { 506 506 if(static_cast<unsigned int>(((*it)->getPosition().y - 5)/this->center_->getStoneSize()) > row) -
code/branches/cpp11_v2/src/modules/tetris/Tetris.h
r10624 r10769 93 93 94 94 WeakPtr<TetrisCenterpoint> center_; //!< The playing field. 95 std::list<StrongPtr<TetrisStone> 95 std::list<StrongPtr<TetrisStone>> stones_; //!< A list of all stones in play. 96 96 WeakPtr<TetrisBrick> activeBrick_; 97 97 WeakPtr<TetrisBrick> futureBrick_; -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefense.cc
r10765 r10769 287 287 } 288 288 289 for (std::list<WeakPtr<TowerDefenseEnemy> 289 for (std::list<WeakPtr<TowerDefenseEnemy>>::iterator it = enemies_.begin(); it != enemies_.end(); ) 290 290 { 291 291 if (*it == nullptr) -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefense.h
r10629 r10769 87 87 int waveNumber_; 88 88 int lifes_; 89 std::list<orxonox::WeakPtr<TowerDefenseEnemy> 89 std::list<orxonox::WeakPtr<TowerDefenseEnemy>> enemies_; 90 90 TowerDefenseField* fields_[16][16]; 91 std::vector<orxonox::WeakPtr<TowerDefenseField> 91 std::vector<orxonox::WeakPtr<TowerDefenseField>> waypoints_; 92 92 Vector3 endpoint_; 93 93 Vector3 offset_;
Note: See TracChangeset
for help on using the changeset viewer.