Struct sc2::data::AbilityData [−][src]
pub struct AbilityData { /* fields omitted */ }
Data about an ability.
Methods
impl AbilityData
[src]
impl AbilityData
pub fn get_generalized_ability(&self) -> Ability
[src]
pub fn get_generalized_ability(&self) -> Ability
Get the most generalized id of the ability.
pub fn is_available(&self) -> bool
[src]
pub fn is_available(&self) -> bool
Indicates whether the ability is available to the current mods/map.
pub fn get_id(&self) -> Ability
[src]
pub fn get_id(&self) -> Ability
Stable ID for the ability.
pub fn get_link_name(&self) -> &str
[src]
pub fn get_link_name(&self) -> &str
Catalog (game data xml) name of the ability.
pub fn get_link_index(&self) -> u32
[src]
pub fn get_link_index(&self) -> u32
Catalog (game data xml) index of the ability.
Name of the button for the command card.
pub fn get_friendly_name(&self) -> &str
[src]
pub fn get_friendly_name(&self) -> &str
In case the button name is not descriptive.
pub fn get_hotkey(&self) -> &str
[src]
pub fn get_hotkey(&self) -> &str
UI hotkey.
pub fn get_remap_abilities(&self) -> &[Ability]
[src]
pub fn get_remap_abilities(&self) -> &[Ability]
Other abilities that can remap to this generic ability.
pub fn get_target(&self) -> Option<AbilityTarget>
[src]
pub fn get_target(&self) -> Option<AbilityTarget>
Type of target that this ability uses.
pub fn casts_in_minimap(&self) -> bool
[src]
pub fn casts_in_minimap(&self) -> bool
Can be cast in the minimap (unimplemented).
pub fn can_autocast(&self) -> bool
[src]
pub fn can_autocast(&self) -> bool
Autocast can be set.
pub fn is_building(&self) -> bool
[src]
pub fn is_building(&self) -> bool
Requires placement to construct a building.
pub fn get_footprint_radius(&self) -> Option<f32>
[src]
pub fn get_footprint_radius(&self) -> Option<f32>
If the ability is placing a building, give the radius of the footprint.
pub fn is_instant_placement(&self) -> bool
[src]
pub fn is_instant_placement(&self) -> bool
Placement next to an existing structure (an addon like a Tech Lab).
pub fn get_cast_range(&self) -> f32
[src]
pub fn get_cast_range(&self) -> f32
Range unit can cast ability without needing to approach target.
Trait Implementations
impl Debug for AbilityData
[src]
impl Debug for AbilityData
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 AbilityData
[src]
impl Clone for AbilityData
fn clone(&self) -> AbilityData
[src]
fn clone(&self) -> AbilityData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for AbilityData
impl Send for AbilityData
impl Sync for AbilityData
impl Sync for AbilityData