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]
impl PlayerSetup
pub fn is_player(&self) -> bool
[src]
pub fn is_player(&self) -> bool
Does the PlayerSetup represent a player?
pub fn is_computer(&self) -> bool
[src]
pub fn is_computer(&self) -> bool
Does the PlayerSetup represent a computer?
Trait Implementations
impl Debug for PlayerSetup
[src]
impl Debug for PlayerSetup
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 Copy for PlayerSetup
[src]
impl Copy for PlayerSetup
impl Clone for PlayerSetup
[src]
impl Clone for PlayerSetup
fn clone(&self) -> PlayerSetup
[src]
fn clone(&self) -> PlayerSetup
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for PlayerSetup
impl Send for PlayerSetup
impl Sync for PlayerSetup
impl Sync for PlayerSetup