pub enum OrchestratorToPlanetKind {
Sunray,
Asteroid,
StartPlanetAI,
StopPlanetAI,
KillPlanet,
InternalStateRequest,
IncomingExplorerRequest,
OutgoingExplorerRequest,
}Variants§
Sunray
This variant is used to send a Sunray to a planet
Expected Response: PlanetToOrchestrator::SunrayAck
Use Case: sending a Sunray to charge EnergyCell
Asteroid
This variant is used to send an Asteroid to a planet
Expected Response: PlanetToOrchestrator::AsteroidAck
StartPlanetAI
This variant is used to start a Planet AI and restart it if it is stopped
Expected Response: PlanetToOrchestrator::StartPlanetAIResult
Use Case: Starting the Planet AI at game start or restart the AI in case it is stopped
StopPlanetAI
This variant is used to pause the planet Ai
Expected Response: PlanetToOrchestrator::StopPlanetAIResult
Use Case: Freezing Planet ability to respond to every message,
a planet in this state will only answer with PlanetToOrchestrator::Stopped
KillPlanet
This variant is used to kill (or destroy) the planet
Expected Response: PlanetToOrchestrator::KillPlanetResult
Use Case: Instantly kill a Planet
InternalStateRequest
This variant is used to obtain a Planet Internal State
Expected Response: PlanetToOrchestrator::InternalStateResponse
Use Case: The GUI can use this message to obtain the relevant info of the planet to be shown
IncomingExplorerRequest
This variant is used to advertise an incoming explorer to a planet
Expected Response: PlanetToOrchestrator::IncomingExplorerResponse
Use Case: Moving an explorer to this planet
OutgoingExplorerRequest
This variant is used to advertise an outgoing explorer to a planet
Expected Response: PlanetToOrchestrator::OutgoingExplorerResponse
Use Case: Asking the planet to delete the Sender to the outgoing explorer
Trait Implementations§
Source§impl Clone for OrchestratorToPlanetKind
impl Clone for OrchestratorToPlanetKind
Source§fn clone(&self) -> OrchestratorToPlanetKind
fn clone(&self) -> OrchestratorToPlanetKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more