use crate::zombies::zombie_trait::ZombieTrait;
pub const INITIAL_HEALTH: i32 = 200;
pub const SPEED: f32 = 0.017;
pub const ATTACK_DAMAGE: i32 = 100;
pub const ATTACK_INTERVAL: u64 = 1000;
pub struct NormalZombie;
impl NormalZombie {
pub fn new() -> Self {
NormalZombie
}
}
impl ZombieTrait for NormalZombie {
fn get_initial_health(&self) -> i32 {
INITIAL_HEALTH
}
fn get_speed(&self) -> f32 {
SPEED
}
fn get_attack_damage(&self) -> i32 {
ATTACK_DAMAGE
}
fn get_attack_interval(&self) -> u64 {
ATTACK_INTERVAL
}
}