pub enum OrchestratorToExplorerKind {
StartExplorerAI,
ResetExplorerAI,
KillExplorer,
StopExplorerAI,
MoveToPlanet,
CurrentPlanetRequest,
SupportedResourceRequest,
SupportedCombinationRequest,
GenerateResourceRequest,
CombineResourceRequest,
BagContentRequest,
NeighborsResponse,
}Variants§
StartExplorerAI
This variant is used to start an Explorer AI
Expected Response: ExplorerToOrchestrator::StartExplorerAIResult
Use Case: Starting the Explorer AI at game start
ResetExplorerAI
This variant is used to reset the Explorer AI and restart it if it is in manual mode
Expected Response: ExplorerToOrchestrator::ResetExplorerAIResult
Use Case: Reset the Explorer knowledge or restart the AI if it is in manual mode
KillExplorer
This variant is used to kill an Explorer
Expected Response: ExplorerToOrchestrator::KillExplorerResult
Use Case: Killing the explorer instantly
StopExplorerAI
This variant is used to stop the Explorer AI from autonomous decision-making
Expected Response: ExplorerToOrchestrator::StopExplorerAIResult
Use Case: Stopping the autonomous decision-making and entering the manual mode
MoveToPlanet
This variant is used to tell the Explorer to move to a different planet
Expected Response: ExplorerToOrchestrator::MovedToPlanetResult
Use Case
When in manual mode, the orchestrator moves the explorer to a new planet and gives the new Sender
When in normal mode, this is the response to ExplorerToOrchestrator::TravelToPlanetRequest, in this case
the orchestrator checks that the explorer can move to the planet specified in the request and sends the optional new sender
CurrentPlanetRequest
This variant is used to ask the ID of the Planet in which the Explorer is currently located
Expected Response: ExplorerToOrchestrator::CurrentPlanetResult
SupportedResourceRequest
This variant is used to enforce the Explorer to ask the supported Resources on the Planet
Expected Response: ExplorerToOrchestrator::SupportedResourceResult
Use Case: In manual mode, ask the explorer to send a ExplorerToPlanet::SupportedResourceRequest to know the available BasicResourceType on its current planet
SupportedCombinationRequest
This variant is used to enforce the Explorer to ask the supported Combinations on the Planet
Expected Response: ExplorerToOrchestrator::SupportedCombinationResult
Use Case: In manual mode, ask the explorer to send a ExplorerToPlanet::SupportedCombinationRequest to know the available ComplexResourceType on its current planet
GenerateResourceRequest
This variant is used to enforce the Explorer to ask the Planet to Generate a BasicResource
Expected Response: ExplorerToOrchestrator::GenerateResourceResponse
Use Case: In manual mode, ask the explorer to send a ExplorerToPlanet::GenerateResourceRequest craft a BasicResource
CombineResourceRequest
This variant is used to enforce the Explorer to ask the Planet to Generate a ComplexResource provided by ComplexResourceType
Expected Response: ExplorerToOrchestrator::CombineResourceResponse
Use Case: In manual mode, ask the explorer to send a ExplorerToPlanet::CombineResourceRequest to craft a ComplexResource
BagContentRequest
This variant is used to ask the content of the Explorer Bag
Expected Response: ExplorerToOrchestrator::BagContentResponse
Use Case: Message used by the GUI to get information on the Explorer bag content to be shown
NeighborsResponse
This variant is used to send to the Explorer the IDs of the planets to which it can be moved
Response To: ExplorerToOrchestrator::NeighborsRequest
Trait Implementations§
Source§impl Clone for OrchestratorToExplorerKind
impl Clone for OrchestratorToExplorerKind
Source§fn clone(&self) -> OrchestratorToExplorerKind
fn clone(&self) -> OrchestratorToExplorerKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more