Enum sc2::MeleeCell
[−]
[src]
pub enum MeleeCell { Init(Init), Setup(Setup), Launch(Launch), PlayerVsPlayer(PlayerVsPlayer), PlayerVsComputer(PlayerVsComputer), Completed(Completed), }
cell designed to pit two bots against each other in Sc2 games
Variants
Init(Init)
wait for soma to gather effector, inputs, and outputs
Setup(Setup)
fetch player info in order to decide how many instances it needs
Launch(Launch)
gather instances and game ports, then transition to PVP or PVC
PlayerVsPlayer(PlayerVsPlayer)
coordinate two instances for player vs player
PlayerVsComputer(PlayerVsComputer)
coordinate one instance for player vs the built-in Sc2 AI
Completed(Completed)
melee suite is exhausted and organelle is awaiting shutdown
Methods
impl MeleeCell
[src]
fn organelle<L1, L2>(settings: MeleeSettings<L1, L2>) -> Result<Organelle> where
L1: Cell,
L2: Cell,
Message: From<L1::Message> + From<L2::Message>,
Role: From<L1::Role> + From<L2::Role>,
L1::Message: From<Message>,
L2::Message: From<Message>,
L1::Role: From<Role>,
L2::Role: From<Role>,
[src]
L1: Cell,
L2: Cell,
Message: From<L1::Message> + From<L2::Message>,
Role: From<L1::Role> + From<L2::Role>,
L1::Message: From<Message>,
L2::Message: From<Message>,
L1::Role: From<Role>,
L2::Role: From<Role>,
create the melee organelle
Trait Implementations
impl Cell for MeleeCell
[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<Self::Message, Self::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