Struct sc2::action::Action [−][src]
pub struct Action { /* fields omitted */ }
An action (command or ability) applied to a unit or set of units.
Methods
impl Action
[src]
impl Action
pub fn new(ability: Ability) -> Self
[src]
pub fn new(ability: Ability) -> Self
Perform the given ability.
pub fn units<'a, T>(self, units: T) -> Self where
T: Iterator<Item = &'a Rc<Unit>>,
[src]
pub fn units<'a, T>(self, units: T) -> Self where
T: Iterator<Item = &'a Rc<Unit>>,
Units that this action applies to.
Take the tags from an arbitrary iterator of units.
Tnits that this action applies to.
Directly assign the unit tags.
pub fn target(self, target: ActionTarget) -> Self
[src]
pub fn target(self, target: ActionTarget) -> Self
Set the target of the action.
Trait Implementations
impl Debug for Action
[src]
impl Debug for Action
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Action
[src]
impl Clone for Action