59 typedef std::vector<ActionRaw> RawActions;
87 enum class PointSelectionType {
101 PointSelectionType type;
108 std::vector<Rect2DI> select_screen;
Tag target_tag
The target of this action. Valid only when target_type == TargetUnitTag.
Definition: sc2_action.h:30
Possible actions for feature layers.
Definition: sc2_action.h:113
AbilityID ability_id
The ID of the ability to invoke.
Definition: sc2_action.h:72
std::vector< SpatialUnitCommand > unit_commands
Commands to selected units.
Definition: sc2_action.h:115
std::vector< Tag > unit_tags
Units this action applies to. In normal use, this would be the currently selected units...
Definition: sc2_action.h:26
Common data types, including points, rectangles and colors.
TargetType
Type of target. Target types are mutually exclusive.
Definition: sc2_action.h:14
2D integer point.
Definition: sc2_common.h:95
Definition: sc2_common.h:49
Definition: sc2_action.h:9
The target is a point.
Definition: sc2_action.h:20
A list of enums provided for your convenience.
The target is a unit tag, could also be a snapshot in the fog-of-war.
Definition: sc2_action.h:18
No target generally means 'self', e.g., a order to make a unit.
Definition: sc2_action.h:16
AbilityID ability_id
The ID of the ability to invoke.
Definition: sc2_action.h:24
TargetType target_type
If this action should be applied to the main game screen or the minimap.
Definition: sc2_action.h:74
Point2DI target
Target point on the screen or minimap, if required.
Definition: sc2_action.h:76
TargetType
If this action should apply to the screen or minimap.
Definition: sc2_action.h:64
std::vector< SpatialSelectPoint > select_points
Selecting by point.
Definition: sc2_action.h:119
bool queued
Indicates if this action should replace or queue behind other actions.
Definition: sc2_action.h:78
Types used in setting up a game.
Point selection.
Definition: sc2_action.h:99
Point2D target_point
The target point for this action. Valid only when target_type == TargetPosition.
Definition: sc2_action.h:32
Apply this action to the main game screen.
Definition: sc2_action.h:66
std::vector< SpatialCameraMove > camera_moves
Camera movement.
Definition: sc2_action.h:117
std::vector< SpatialSelectRect > select_rects
Selecting by rectangles.
Definition: sc2_action.h:121
An action (command or ability) applied to selected units when using feature layers or the rendered in...
Definition: sc2_action.h:62
An action (command or ability) applied to a unit or set of units.
Definition: sc2_action.h:12
Where to move the camera to on the minimap.
Definition: sc2_action.h:82
TargetType target_type
Which target fields are valid.
Definition: sc2_action.h:28
bool operator==(const ActionRaw &a) const
Comparison overload.
Definition: sc2_action.h:39
Definition: sc2_action.h:107