Trait screeps::traits::HasHits

source ·
pub trait HasHits {
    // Required methods
    fn hits(&self) -> u32;
    fn hits_max(&self) -> u32;
}

Required Methods§

source

fn hits(&self) -> u32

Retrieve the current hits of this object.

source

fn hits_max(&self) -> u32

Retrieve the maximum hits of this object.

Implementors§