Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpObstruction.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Test whether this entity is colliding with any obstruction that are set to | * Test whether this entity is colliding with any obstruction that are set to | ||||
* block the creation of foundations. | * block the creation of foundations. | ||||
* @param ignoredEntities List of entities to ignore during the test. | * @param ignoredEntities List of entities to ignore during the test. | ||||
* @return FOUNDATION_CHECK_SUCCESS if check passes, else an EFoundationCheck | * @return FOUNDATION_CHECK_SUCCESS if check passes, else an EFoundationCheck | ||||
* value describing the type of failure. | * value describing the type of failure. | ||||
*/ | */ | ||||
virtual EFoundationCheck CheckFoundation(const std::string& className) const = 0; | virtual EFoundationCheck CheckFoundation(const std::string& className) const = 0; | ||||
virtual EFoundationCheck CheckFoundation(const std::string& className, bool onlyCenterPoint) const = 0; | |||||
/** | /** | ||||
* CheckFoundation wrapper for script calls, to return friendly strings instead of an EFoundationCheck. | * CheckFoundation wrapper for script calls, to return friendly strings instead of an EFoundationCheck. | ||||
* @return "success" if check passes, else a string describing the type of failure. | * @return "success" if check passes, else a string describing the type of failure. | ||||
*/ | */ | ||||
virtual std::string CheckFoundation_wrapper(const std::string& className, bool onlyCenterPoint) const; | virtual std::string CheckFoundation_wrapper(const std::string& className) const; | ||||
/** | /** | ||||
* Test whether this entity is colliding with any obstructions that share its | * Test whether this entity is colliding with any obstructions that share its | ||||
* control groups and block the creation of foundations. | * control groups and block the creation of foundations. | ||||
* @return true if foundation is valid (not obstructed) | * @return true if foundation is valid (not obstructed) | ||||
*/ | */ | ||||
virtual bool CheckDuplicateFoundation() const = 0; | virtual bool CheckDuplicateFoundation() const = 0; | ||||
Show All 37 Lines |
Wildfire Games · Phabricator