Trait FightSink

Source
pub trait FightSink {
    // Required methods
    fn push_event(&mut self, event: OverlordEvent) -> Result<(), Error>;
    fn push_attack(
        &mut self,
        delay: u64,
        duration: u64,
        target: Uuid,
    ) -> Result<(), Error>;
    fn push_run(
        &mut self,
        coords: Coordinates,
        duration: u64,
    ) -> Result<(), Error>;
}
Expand description

Where a fight method emits its results.

Required Methods§

Source

fn push_event(&mut self, event: OverlordEvent) -> Result<(), Error>

Source

fn push_attack( &mut self, delay: u64, duration: u64, target: Uuid, ) -> Result<(), Error>

Source

fn push_run(&mut self, coords: Coordinates, duration: u64) -> Result<(), Error>

Implementors§