[][src]Trait myelin_engine::object::ObjectBehavior

pub trait ObjectBehavior<T>: Debug + ObjectBehaviorClone<T> + ObjectBehaviorAsAny<T> where
    T: AssociatedObjectData, 
{ fn step(
        &mut self,
        world_interactor: Box<dyn WorldInteractor<T>>
    ) -> Option<Action<T>>; }

Behavior of an object

Required methods

fn step(
    &mut self,
    world_interactor: Box<dyn WorldInteractor<T>>
) -> Option<Action<T>>

Returns all actions performed by the object in the current simulation tick

Loading content...

Implementors

Loading content...