pub trait EffectLogic: Debug + Element {
    // Required method
    fn apply(&self, original: Plane) -> Result<Plane, EffectError>;

    // Provided methods
    fn depends_on_other_effects_ids(&self) -> Vec<ID> { ... }
    fn depends_on_other_effects(&self) -> bool { ... }
    fn add_depended_on_other_effect(&mut self, effect_id: &str) { ... }
}

Required Methods§

source

fn apply(&self, original: Plane) -> Result<Plane, EffectError>

Provided Methods§

source

fn depends_on_other_effects_ids(&self) -> Vec<ID>

source

fn depends_on_other_effects(&self) -> bool

Returns true if the effect depends on one (or more) other effects, otherwise the function returns false

source

fn add_depended_on_other_effect(&mut self, effect_id: &str)

Implementors§