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; | ||||
/** | /** | ||||
* Get the current acceleration. | |||||
*/ | |||||
virtual fixed GetAcceleration() const = 0; | |||||
/** | |||||
* Set the current acceleration. | |||||
* @param acceleration The acceleration. | |||||
*/ | |||||
virtual void SetAcceleration(fixed acceleration) = 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