Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpObstruction.cpp
Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | if (!GetObstructionSquare(square)) | ||||
return ret; // error | return ret; // error | ||||
cmpObstructionManager->GetUnitsOnObstruction(square, ret, filter, false); | cmpObstructionManager->GetUnitsOnObstruction(square, ret, filter, false); | ||||
cmpObstructionManager->GetStaticObstructionsOnObstruction(square, ret, filter); | cmpObstructionManager->GetStaticObstructionsOnObstruction(square, ret, filter); | ||||
return ret; | return ret; | ||||
} | } | ||||
virtual std::vector<entity_id_t> GetEntitiesBlockingMovement() const | |||||
{ | |||||
return GetEntitiesByFlags(ICmpObstructionManager::FLAG_BLOCK_MOVEMENT); | |||||
} | |||||
virtual std::vector<entity_id_t> GetEntitiesBlockingConstruction() const | virtual std::vector<entity_id_t> GetEntitiesBlockingConstruction() const | ||||
{ | { | ||||
return GetEntitiesByFlags(ICmpObstructionManager::FLAG_BLOCK_CONSTRUCTION); | return GetEntitiesByFlags(ICmpObstructionManager::FLAG_BLOCK_CONSTRUCTION); | ||||
} | } | ||||
virtual std::vector<entity_id_t> GetEntitiesDeletedUponConstruction() const | virtual std::vector<entity_id_t> GetEntitiesDeletedUponConstruction() const | ||||
{ | { | ||||
return GetEntitiesByFlags(ICmpObstructionManager::FLAG_DELETE_UPON_CONSTRUCTION); | return GetEntitiesByFlags(ICmpObstructionManager::FLAG_DELETE_UPON_CONSTRUCTION); | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator