Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpUnitMotion.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Get the speed at which the unit intends to move. | * Get the speed at which the unit intends to move. | ||||
* (regardless of whether the unit is moving or not right now). | * (regardless of whether the unit is moving or not right now). | ||||
*/ | */ | ||||
virtual fixed GetSpeed() const = 0; | virtual fixed GetSpeed() const = 0; | ||||
/** | /** | ||||
* Wrapper around PerformMove to estimate the next position assuming the current path. | |||||
* Make sure this copies all values, no actual movement allowed. | |||||
*/ | |||||
virtual CFixedVector2D EstimateNextPosition(const fixed dt) const = 0; | |||||
/** | |||||
* Set whether the unit will turn to face the target point after finishing moving. | * Set whether the unit will turn to face the target point after finishing moving. | ||||
*/ | */ | ||||
virtual void SetFacePointAfterMove(bool facePointAfterMove) = 0; | virtual void SetFacePointAfterMove(bool facePointAfterMove) = 0; | ||||
virtual bool GetFacePointAfterMove() const = 0; | virtual bool GetFacePointAfterMove() const = 0; | ||||
/** | /** | ||||
* Get the unit's passability class. | * Get the unit's passability class. | ||||
Show All 22 Lines |
Wildfire Games · Phabricator