[][src]Enum weasel::event::EventKind

pub enum EventKind {
    DummyEvent,
    CreateTeam,
    CreateCreature,
    CreateObject,
    MoveEntity,
    StartTurn,
    EndTurn,
    EndRound,
    EnvironmentTurn,
    ActivateAbility,
    ApplyImpact,
    AlterStatistics,
    AlterStatuses,
    AlterAbilities,
    RegenerateStatistics,
    RegenerateAbilities,
    InflictStatus,
    ClearStatus,
    ConvertCreature,
    SetRelations,
    ConcludeObjectives,
    RemoveCreature,
    RemoveObject,
    RemoveTeam,
    AlterSpace,
    ResetEntropy,
    ResetObjectives,
    ResetRounds,
    ResetSpace,
    EndBattle,
    UserEvent(UserEventId),
}

Enum to represent all different kinds of events.

Variants

DummyEvent

Dummy event doing nothing.

CreateTeam

Create a new team.

CreateCreature

Create a new creature.

CreateObject

Create a new object.

MoveEntity

Move an entity from one position to another.

StartTurn

Start a new turn.

EndTurn

End the current turn.

EndRound

End the current round.

EnvironmentTurn

Perform a turn for the environment.

ActivateAbility

Activate an actor's ability.

ApplyImpact

Apply the consequences of an impact on the world.

AlterStatistics

Modify the statistics of a character.

AlterStatuses

Modify the statuses of a character.

AlterAbilities

Modify the abilities of an actor.

RegenerateStatistics

Regenerate the statistics of a character.

RegenerateAbilities

Regenerate the abilities of an actor.

InflictStatus

Inflict a status effect on a character.

ClearStatus

Frees a character from a status effect.

ConvertCreature

Convert a creature from one team to another.

SetRelations

Set new relations between teams.

ConcludeObjectives

An event to set a team's objectives outcome.

RemoveCreature

Remove a creature from the battle.

RemoveObject

Remove an object from the battle.

RemoveTeam

Remove a team from the battle.

AlterSpace

Modify the spatial model.

ResetEntropy

Reset the entropy model.

ResetObjectives

Reset the objectives of a team.

ResetRounds

Reset the rounds model.

ResetSpace

Reset the space model.

EndBattle

End the battle.

UserEvent(UserEventId)

A user defined event with an unique id.

Trait Implementations

impl Clone for EventKind[src]

impl Copy for EventKind[src]

impl Debug for EventKind[src]

impl PartialEq<EventKind> for EventKind[src]

impl StructuralPartialEq for EventKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,