#include <ICmpSelectable.h>
Definition at line 26 of file ICmpSelectable.h.
| Enumerator |
|---|
| DYNAMIC_QUAD |
A single textured quad overlay, intended for entities that move around much, like units (e.g. foot soldiers, etc).
|
| STATIC_OUTLINE |
A more complex textured line overlay, composed of several textured line segments.
Intended for entities that do not move often, such as buildings (structures).
|
Definition at line 30 of file ICmpSelectable.h.
| virtual bool ICmpSelectable::IsEditorOnly |
( |
| ) |
|
|
pure virtual |
Returns true if the entity is only selectable in Atlas editor, e.g.
a decorative visual actor.
Implemented in CCmpSelectable.
| virtual void ICmpSelectable::SetSelectionHighlight |
( |
CColor |
color, |
|
|
bool |
selected |
|
) |
| |
|
pure virtual |
Set the selection highlight state.
The highlight is typically a circle/square overlay around the unit.
- Parameters
-
| color | color and alpha of the selection highlight. Set color.a = 0 to hide the highlight. |
| selected | whether the entity is selected; affects desaturation for always visible highlights. |
Implemented in CCmpSelectable.
| virtual void ICmpSelectable::SetSelectionHighlightAlpha |
( |
float |
alpha | ) |
|
|
pure virtual |
Set the alpha of the selection highlight.
Set to 0 to hide the highlight.
Implemented in CCmpSelectable.
| virtual void ICmpSelectable::SetVisibility |
( |
bool |
visible | ) |
|
|
pure virtual |
Enables or disables rendering of an entity's selectable.
- Parameters
-
| visible | Whether the selectable should be visible. |
Implemented in CCmpSelectable.
| bool ICmpSelectable::ms_EnableDebugOverlays = false |
|
static |
The documentation for this class was generated from the following files: