Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpPosition.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 56 Lines • ▼ Show 20 Lines | public: | ||||
virtual void SetTurretParent(entity_id_t parent, const CFixedVector3D& offset) = 0; | virtual void SetTurretParent(entity_id_t parent, const CFixedVector3D& offset) = 0; | ||||
/** | /** | ||||
* Get the turret parent of this entity | * Get the turret parent of this entity | ||||
*/ | */ | ||||
virtual entity_id_t GetTurretParent() const = 0; | virtual entity_id_t GetTurretParent() const = 0; | ||||
/** | /** | ||||
* Set the turn rate in radians per second. | |||||
*/ | |||||
virtual void SetTurnRate(fixed turnRate) = 0; | |||||
/** | |||||
* Has to be called to update the simulation position of the turret | * Has to be called to update the simulation position of the turret | ||||
*/ | */ | ||||
virtual void UpdateTurretPosition() = 0; | virtual void UpdateTurretPosition() = 0; | ||||
/** | /** | ||||
* Get the list of turrets to read or edit | * Get the list of turrets to read or edit | ||||
*/ | */ | ||||
virtual std::set<entity_id_t>* GetTurrets() = 0; | virtual std::set<entity_id_t>* GetTurrets() = 0; | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator