Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpSelectable.h
Show All 33 Lines | public: | ||||
* Set the selection highlight state. | * Set the selection highlight state. | ||||
* The highlight is typically a circle/square overlay around the unit. | * The highlight is typically a circle/square overlay around the unit. | ||||
* @param color color and alpha of the selection highlight. Set color.a = 0 to hide the highlight. | * @param color color and alpha of the selection highlight. Set color.a = 0 to hide the highlight. | ||||
* @param selected whether the entity is selected; affects desaturation for always visible highlights. | * @param selected whether the entity is selected; affects desaturation for always visible highlights. | ||||
*/ | */ | ||||
virtual void SetSelectionHighlight(const CColor& color, bool selected) = 0; | virtual void SetSelectionHighlight(const CColor& color, bool selected) = 0; | ||||
/** | /** | ||||
* Add a range overlay to this entity, for example for an aura or attack. | |||||
*/ | |||||
virtual void AddRangeOverlay(float radius, const std::string& texture, const std::string& textureMask, float thickness) = 0; | |||||
/** | |||||
* Delete all range overlays. | |||||
*/ | |||||
virtual void ResetRangeOverlays() = 0; | |||||
/** | |||||
* Enables or disables rendering of an entity's selectable. | * Enables or disables rendering of an entity's selectable. | ||||
* @param visible Whether the selectable should be visible. | * @param visible Whether the selectable should be visible. | ||||
*/ | */ | ||||
virtual void SetVisibility(bool visible) = 0; | virtual void SetVisibility(bool visible) = 0; | ||||
/** | /** | ||||
* Enables or disables rendering of all entities selectable. | * Enables or disables rendering of all entities selectable. | ||||
* @param visible Whether the selectable should be visible. | * @param visible Whether the selectable should be visible. | ||||
Show All 23 Lines |
Wildfire Games · Phabricator