OrchestratorToExplorerKind

Enum OrchestratorToExplorerKind 

Source
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

Source§

fn clone(&self) -> OrchestratorToExplorerKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OrchestratorToExplorerKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'_enum> From<&'_enum OrchestratorToExplorer> for OrchestratorToExplorerKind

Source§

fn from(val: &'_enum OrchestratorToExplorer) -> OrchestratorToExplorerKind

Converts to this type from the input type.
Source§

impl From<OrchestratorToExplorer> for OrchestratorToExplorerKind

Source§

fn from(val: OrchestratorToExplorer) -> OrchestratorToExplorerKind

Converts to this type from the input type.
Source§

impl Hash for OrchestratorToExplorerKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for OrchestratorToExplorerKind

Source§

fn eq(&self, other: &OrchestratorToExplorerKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for OrchestratorToExplorerKind

Source§

impl Eq for OrchestratorToExplorerKind

Source§

impl StructuralPartialEq for OrchestratorToExplorerKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.