Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpPosition.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* When set to true, the entity will follow the terrain height (possibly with an offset) | * When set to true, the entity will follow the terrain height (possibly with an offset) | ||||
* When set to false, it's height won't change automatically | * When set to false, it's height won't change automatically | ||||
*/ | */ | ||||
virtual void SetHeightRelative(bool flag) = 0; | virtual void SetHeightRelative(bool flag) = 0; | ||||
/** | /** | ||||
* Returns whether the entity is currently floating on water. | |||||
*/ | |||||
virtual bool IsCurrentlyFloating() const = 0; | |||||
/** | |||||
* Returns whether the entity can float on water. | * Returns whether the entity can float on water. | ||||
*/ | */ | ||||
virtual bool CanFloat() const = 0; | virtual bool CanFloat() const = 0; | ||||
/** | /** | ||||
* Set the entity to float on water | * Set the entity to float on water | ||||
*/ | */ | ||||
virtual void SetFloating(bool flag) = 0; | virtual void SetFloating(bool flag) = 0; | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator