Struct sc2::data::AbilityData
[−]
[src]
pub struct AbilityData { /* fields omitted */ }
data about an ability
Methods
impl AbilityData
[src]
pub fn get_generalized_ability(&self) -> Ability
[src]
get the most generalized id of the ability
pub fn is_available(&self) -> bool
[src]
indicates whether the ability is available to the current mods/map
pub fn get_id(&self) -> Ability
[src]
stable ID for the ability
pub fn get_link_name(&self) -> &str
[src]
catalog (game data xml) name of the ability
pub fn get_link_index(&self) -> u32
[src]
catalog (game data xml) index of the ability
[src]
name of the button for the command card
pub fn get_friendly_name(&self) -> &str
[src]
in case the button name is not descriptive
pub fn get_hotkey(&self) -> &str
[src]
UI hotkey
pub fn get_remap_abilities(&self) -> &[Ability]
[src]
other abilities that can remap to this generic ability
pub fn get_target(&self) -> Option<AbilityTarget>
[src]
type of target that this ability uses
pub fn casts_in_minimap(&self) -> bool
[src]
can be cast in the minimap (unimplemented)
pub fn can_autocast(&self) -> bool
[src]
autocast can be set
pub fn is_building(&self) -> bool
[src]
requires placement to construct a building
pub fn get_footprint_radius(&self) -> Option<f32>
[src]
if the ability is placing a building, give the radius of the footprint
pub fn is_instant_placement(&self) -> bool
[src]
placement next to an existing structure (an addon like a Tech Lab)
pub fn get_cast_range(&self) -> f32
[src]
range unit can cast ability without needing to approach target
Trait Implementations
impl Debug for AbilityData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for AbilityData
[src]
fn clone(&self) -> AbilityData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more