pub struct SpellAbilityVariables { /* private fields */ }Expand description
Variables controlling when a spell ability can be activated or its conditions are met.
Mirrors Java’s SpellAbilityVariables (lines 36-100).
Implementations§
Source§impl SpellAbilityVariables
impl SpellAbilityVariables
pub fn zone(&self) -> ZoneType
pub fn set_zone(&mut self, zone: ZoneType)
pub fn phases(&self) -> &HashSet<PhaseType>
pub fn set_phases(&mut self, phases: HashSet<PhaseType>)
pub fn add_phase(&mut self, phase: PhaseType)
pub fn sorcery_speed(&self) -> bool
pub fn set_sorcery_speed(&mut self, val: bool)
pub fn instant_speed(&self) -> bool
pub fn set_instant_speed(&mut self, val: bool)
pub fn activator(&self) -> &str
pub fn set_activator(&mut self, activator: String)
pub fn opponent_turn(&self) -> bool
pub fn set_opponent_turn(&mut self, val: bool)
pub fn player_turn(&self) -> bool
pub fn set_player_turn(&mut self, val: bool)
pub fn limit_to_check(&self) -> Option<&str>
pub fn set_limit_to_check(&mut self, limit: Option<String>)
pub fn game_limit_to_check(&self) -> Option<&str>
pub fn set_game_limit_to_check(&mut self, limit: Option<String>)
pub fn cards_in_hand(&self) -> i32
pub fn set_cards_in_hand(&mut self, count: i32)
pub fn threshold(&self) -> bool
pub fn set_threshold(&mut self, val: bool)
pub fn metalcraft(&self) -> bool
pub fn set_metalcraft(&mut self, val: bool)
pub fn delirium(&self) -> bool
pub fn set_delirium(&mut self, val: bool)
pub fn hellbent(&self) -> bool
pub fn set_hellbent(&mut self, val: bool)
pub fn revolt(&self) -> bool
pub fn set_revolt(&mut self, val: bool)
pub fn desert(&self) -> bool
pub fn set_desert(&mut self, val: bool)
pub fn blessing(&self) -> bool
pub fn set_blessing(&mut self, val: bool)
pub fn solved(&self) -> bool
pub fn set_solved(&mut self, val: bool)
pub fn is_present(&self) -> Option<&str>
pub fn set_is_present(&mut self, val: Option<String>)
pub fn present_compare(&self) -> Option<&str>
pub fn set_present_compare(&mut self, val: Option<String>)
pub fn present_zone(&self) -> ZoneType
pub fn set_present_zone(&mut self, zone: ZoneType)
pub fn present_defined(&self) -> Option<&str>
pub fn set_present_defined(&mut self, val: Option<String>)
Sourcepub fn gets_var_operand(&self) -> Option<&str>
pub fn gets_var_operand(&self) -> Option<&str>
Get variable operand 1.
Mirrors Java’s SpellAbilityVariables.getVarOperand().
Sourcepub fn gets_var_operand2(&self) -> Option<&str>
pub fn gets_var_operand2(&self) -> Option<&str>
Get variable operand 2.
Mirrors Java’s SpellAbilityVariables.getVarOperand2().
Sourcepub fn sets_var_operand(&mut self, val: &str)
pub fn sets_var_operand(&mut self, val: &str)
Set variable operand 1.
Mirrors Java’s SpellAbilityVariables.setVarOperand(String).
Sourcepub fn sets_var_operand2(&mut self, val: &str)
pub fn sets_var_operand2(&mut self, val: &str)
Set variable operand 2.
Mirrors Java’s SpellAbilityVariables.setVarOperand2(String).
Sourcepub fn gets_var_to_check(&self) -> Option<&str>
pub fn gets_var_to_check(&self) -> Option<&str>
Get variable to check 1.
Mirrors Java’s SpellAbilityVariables.getVarToCheck().
Sourcepub fn gets_var_to_check2(&self) -> Option<&str>
pub fn gets_var_to_check2(&self) -> Option<&str>
Get variable to check 2.
Mirrors Java’s SpellAbilityVariables.getVarToCheck2().
Sourcepub fn sets_var_to_check(&mut self, val: &str)
pub fn sets_var_to_check(&mut self, val: &str)
Set variable to check 1.
Mirrors Java’s SpellAbilityVariables.setVarToCheck(String).
Sourcepub fn sets_var_to_check2(&mut self, val: &str)
pub fn sets_var_to_check2(&mut self, val: &str)
Set variable to check 2.
Mirrors Java’s SpellAbilityVariables.setVarToCheck2(String).
Sourcepub fn gets_var_operator(&self) -> Option<&str>
pub fn gets_var_operator(&self) -> Option<&str>
Get variable operator 1.
Mirrors Java’s SpellAbilityVariables.getVarOperator().
Sourcepub fn gets_var_operator2(&self) -> Option<&str>
pub fn gets_var_operator2(&self) -> Option<&str>
Get variable operator 2.
Mirrors Java’s SpellAbilityVariables.getVarOperator2().
Sourcepub fn sets_var_operator(&mut self, val: &str)
pub fn sets_var_operator(&mut self, val: &str)
Set variable operator 1.
Mirrors Java’s SpellAbilityVariables.setVarOperator(String).
Sourcepub fn sets_var_operator2(&mut self, val: &str)
pub fn sets_var_operator2(&mut self, val: &str)
Set variable operator 2.
Mirrors Java’s SpellAbilityVariables.setVarOperator2(String).
pub fn class_level(&self) -> Option<&str>
pub fn set_class_level(&mut self, val: Option<String>)
pub fn class_level_operator(&self) -> Option<&str>
pub fn set_class_level_operator(&mut self, val: Option<String>)
Sourcepub fn targets_single_target(&self) -> bool
pub fn targets_single_target(&self) -> bool
Whether this targets a single target.
Mirrors Java’s SpellAbilityVariables.targetsSingleTarget().
Sourcepub fn set_targets_single_target(&mut self, val: bool)
pub fn set_targets_single_target(&mut self, val: bool)
Set whether this targets a single target.
Trait Implementations§
Source§impl Clone for SpellAbilityVariables
impl Clone for SpellAbilityVariables
Source§fn clone(&self) -> SpellAbilityVariables
fn clone(&self) -> SpellAbilityVariables
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more