Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpUnitMotion.h
/* Copyright (C) 2020 Wildfire Games. | /* Copyright (C) 2021 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 102 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; | ||||
/** | /** | ||||
* @return the estimated position of the unit in @param dt seconds, | |||||
* following current paths. This is allowed to 'look into the future'. | |||||
*/ | |||||
virtual CFixedVector2D EstimateFuturePosition(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