public interface ActionFeatureLayerInterface
Modifier and Type | Method | Description |
---|---|---|
ActionFeatureLayerInterface |
cameraMove(PointI center) |
Moves the camera to be centered around a position.
|
ActionFeatureLayerInterface |
select(PointI center,
ActionSpatialUnitSelectionPoint.Type selectionType) |
Selection of a point, equivalent to clicking the mouse on a unit.
|
ActionFeatureLayerInterface |
select(PointI p0,
PointI p1,
boolean addToSelection) |
Selection of an area, equivalent to click-dragging the mouse over an area of the screen.
|
boolean |
sendActions() |
This function sends out all batched selection and unit commands.
|
ActionFeatureLayerInterface |
unitCommand(Ability ability) |
Issues a command to whatever is selected.
|
ActionFeatureLayerInterface |
unitCommand(Ability ability,
PointI point,
boolean minimap) |
Issues a command to whatever is selected.
|
ActionFeatureLayerInterface unitCommand(Ability ability)
ability
- The ability id of the command.ActionFeatureLayerInterface unitCommand(Ability ability, PointI point, boolean minimap)
ability
- The ability id of the command.point
- The 2D world position to target.minimap
- Target in the minimap instead of the map.ActionFeatureLayerInterface cameraMove(PointI center)
ActionFeatureLayerInterface select(PointI center, ActionSpatialUnitSelectionPoint.Type selectionType)
center
- The feature layer 'pixel' being clicked on.selectionType
- Any modifier keys, for example if 'shift-click' is desired.ActionFeatureLayerInterface select(PointI p0, PointI p1, boolean addToSelection)
p0
- The feature layer pixel where the first click occurs (mouse button down).p1
- The feature layer pixel where the drag release occurs (mouse button up).addToSelection
- Will add newly selected units to an existing selection.boolean sendActions()
Copyright © 2017–2018 Ocraft Project. All rights reserved.