pub trait EntityTableRead {
    // Required methods
    fn get_monsters(&self) -> Vec<&DungeonEntity>;
    fn get_active_monsters(&self) -> Vec<&DungeonEntity>;
    fn get_items(&self) -> Vec<&DungeonEntity>;
    fn get_traps(&self) -> Vec<&DungeonEntity>;
    fn get_hidden_stairs(&self) -> Option<&DungeonEntity>;
}
Expand description

Functions for reading data from an entity table.

Required Methods§

source

fn get_monsters(&self) -> Vec<&DungeonEntity>

All monsters, whether they’re used or not.

Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!

source

fn get_active_monsters(&self) -> Vec<&DungeonEntity>

Actually used monsters.

Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!

source

fn get_items(&self) -> Vec<&DungeonEntity>

All items.

Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!

source

fn get_traps(&self) -> Vec<&DungeonEntity>

All traps.

Null entries are not included, and reading is stopped at them. Note that some may be invalid, check the validity flag!

source

fn get_hidden_stairs(&self) -> Option<&DungeonEntity>

Hidden stairs entity.

Returns None if null. Note that it still may be invalid, check the validity flag!

Implementors§