Changeset 10769 for code/branches/cpp11_v2/src/modules/objects
- Timestamp:
- Nov 7, 2015, 10:23:42 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/objects
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.