pub trait EntityTableWrite: EntityTableRead {
    // Required methods
    fn get_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>;
    fn get_active_monsters_mut(&mut self) -> Vec<&mut DungeonEntity>;
    fn get_items_mut(&mut self) -> Vec<&mut DungeonEntity>;
    fn get_traps_mut(&mut self) -> Vec<&mut DungeonEntity>;
    fn get_hidden_stairs_mut(&mut self) -> Option<&mut DungeonEntity>;
}
Expand description

Functions for writing data into an entity table.

Required Methods§

source

fn get_monsters_mut(&mut self) -> Vec<&mut 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_mut(&mut self) -> Vec<&mut 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_mut(&mut self) -> Vec<&mut 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_mut(&mut self) -> Vec<&mut 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_mut(&mut self) -> Option<&mut DungeonEntity>

Hidden stairs entity.

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

Implementors§