Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpRallyPointRenderer.h
Show All 18 Lines | |||||
#define INCLUDED_ICMPRALLYPOINT | #define INCLUDED_ICMPRALLYPOINT | ||||
#include "maths/FixedVector2D.h" | #include "maths/FixedVector2D.h" | ||||
#include "simulation2/helpers/Position.h" | #include "simulation2/helpers/Position.h" | ||||
#include "simulation2/system/Interface.h" | #include "simulation2/system/Interface.h" | ||||
/** | /** | ||||
* Rally Point. | * Rally Point. | ||||
* Holds the position of a unit's rally points, and renders them to screen. | * Holds the position(s) of a unit's rally points, and renders them to screen. | ||||
*/ | */ | ||||
class ICmpRallyPointRenderer : public IComponent | class ICmpRallyPointRenderer : public IComponent | ||||
{ | { | ||||
public: | public: | ||||
/// Sets whether the rally point marker and line should be displayed. | |||||
virtual void SetDisplayed(bool displayed) = 0; | virtual void SetDisplayed(bool displayed) = 0; | ||||
/// Sets the position at which the rally point marker should be displayed. | virtual void SetPosition(const CFixedVector2D& pos) = 0; | ||||
/// Discards all previous positions | |||||
virtual void SetPosition(const CFixedVector2D& position) = 0; | |||||
/// Updates the position of one given rally point marker. | virtual void AddPosition_wrapper(const CFixedVector2D& pos) = 0; | ||||
virtual void UpdatePosition(u32 rallyPointId, const CFixedVector2D& position) = 0; | |||||
/// Add another position at which a marker should be displayed, connected | /// Updates the position of one given rally point marker. | ||||
/// to the previous one. | virtual void UpdatePosition(u32 rallyPointId, const CFixedVector2D& pos) = 0; | ||||
virtual void AddPosition_wrapper(const CFixedVector2D& position) = 0; | |||||
/// Reset the positions of this rally point marker | /// Reset the positions of this rally point marker | ||||
virtual void Reset() = 0; | virtual void Reset() = 0; | ||||
/// Returns true if at least one display rally point is set | /// Returns true if at least one display rally point is set | ||||
virtual bool IsSet() const = 0; | virtual bool IsSet() const = 0; | ||||
DECLARE_INTERFACE_TYPE(RallyPointRenderer) | DECLARE_INTERFACE_TYPE(RallyPointRenderer) | ||||
}; | }; | ||||
#endif // INCLUDED_ICMPRALLYPOINT | #endif // INCLUDED_ICMPRALLYPOINT |
Wildfire Games · Phabricator