Enum sc2::PlayerSetup
[−]
[src]
pub enum PlayerSetup { Computer { race: Race, difficulty: Difficulty, }, Player { race: Race, }, }
settings for players
Variants
Computer
add a built-in StarCraft II bot with the given race and difficulty
Fields of Computer
race: Race | race of the computer |
difficulty: Difficulty | difficulty setting |
Player
add a user-controlled player
Fields of Player
race: Race | race of the player |
Methods
impl PlayerSetup
[src]
fn is_player(&self) -> bool
[src]
does the PlayerSetup represent a player
fn is_computer(&self) -> bool
[src]
does the PlayerSetup represent a computer
Trait Implementations
impl Debug for PlayerSetup
[src]
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