Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpObstruction.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Returns a list of entities that have an obstruction matching the given flag and intersect the current obstruction. | * Returns a list of entities that have an obstruction matching the given flag and intersect the current obstruction. | ||||
* @return vector of blocking entities | * @return vector of blocking entities | ||||
*/ | */ | ||||
virtual std::vector<entity_id_t> GetEntitiesByFlags(ICmpObstructionManager::flags_t flags) const = 0; | virtual std::vector<entity_id_t> GetEntitiesByFlags(ICmpObstructionManager::flags_t flags) const = 0; | ||||
/** | /** | ||||
* Returns a list of entities that are blocking movement. | |||||
* @return vector of blocking entities | |||||
*/ | |||||
virtual std::vector<entity_id_t> GetEntitiesBlockingMovement() const = 0; | |||||
/** | |||||
* Returns a list of entities that are blocking construction of a foundation. | * Returns a list of entities that are blocking construction of a foundation. | ||||
* @return vector of blocking entities | * @return vector of blocking entities | ||||
*/ | */ | ||||
virtual std::vector<entity_id_t> GetEntitiesBlockingConstruction() const = 0; | virtual std::vector<entity_id_t> GetEntitiesBlockingConstruction() const = 0; | ||||
/** | /** | ||||
* Returns a list of entities that shall be deleted when a construction on this obstruction starts, | * Returns a list of entities that shall be deleted when a construction on this obstruction starts, | ||||
* for example sheep carcasses. | * for example sheep carcasses. | ||||
Show All 34 Lines |
Wildfire Games · Phabricator