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