Enum sc2::ComputerCell
[−]
[src]
pub enum ComputerCell { Init(Init), Setup(Setup), }
cell that acts as the built-in SC2 AI
Variants
Init(Init)
initialize the soma
Setup(Setup)
respond to the setup queries
Methods
impl ComputerCell
[src]
fn new(race: Race, difficulty: Difficulty) -> Result<Self>
[src]
create a new computer cell
Trait Implementations
impl Cell for ComputerCell
[src]
type Message = Message
user-defined message to be passed between cells
type Role = Role
user-defined roles for connections
fn update(self, msg: Protocol<Message, Role>) -> Result<Self>
[src]
apply any changes to the cell's state as a result of _msg
fn run(self) -> Result<(), Error>
[src]
spin up an event loop and run cell