Enum sc2::data::PlayerSetup
[−]
[src]
pub enum PlayerSetup { Computer(Race, Difficulty), Player(Race), }
settings for players
Variants
Computer(Race, Difficulty)
add a built-in StarCraft II bot with the given race and difficulty
Player(Race)
add a user-controlled player
Methods
impl PlayerSetup
[src]
pub fn is_player(&self) -> bool
[src]
does the PlayerSetup represent a player
pub fn is_computer(&self) -> bool
[src]
does the PlayerSetup represent a computer
Trait Implementations
impl Debug for PlayerSetup
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for PlayerSetup
[src]
impl Clone for PlayerSetup
[src]
fn clone(&self) -> PlayerSetup
[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