td

Artifact [f421cd182b]
Login

Artifact [f421cd182b]

Artifact f421cd182bd7b02c2e5f421bf222255590c5af3d0a9c4094aa2ea50371808add:


//! Concrete enemy kinds — each builds an `Enemy` with its stats + behavior pipeline — plus the
//! `EnemyKind` definition trait the registry uses to construct them. Mirrors `crate::weapons`
//! (concrete `ProjectileBehavior`s + the `Weapon` lifecycle trait).

pub mod behaviors;
pub mod blob;
pub mod movement;

use crate::enemy::Enemy;

pub trait EnemyKind {
    fn create(tier: u32) -> Enemy;
    fn animation() -> Box<fn(&Enemy) -> ()>;
}