Module eos_rs::api::dungeon_mode
source · Expand description
Traits, enums, structs and functions related to dungeon mode.
Modules
- The dungeon generation as a collection of traits with two implementations.
- Dungeon menu controller.
Structs
- The Rust-safe wrapped master struct that contains the state of the dungeon. Can be owned or mutably borrowed from a low-level
ffi::dungeon
. - Helper struct for emitting move and item effects.
- Internal functions for battle effect calculations.
- Mutable reference type for the info struct for
DungeonEntity
objects that are monsters. - Reference type for the info struct for
DungeonEntity
objects that are monsters. - Helper struct for dungeon RNG.
- A iterator over the tiles in a dungeon tile grid.
- A mutable iterator over the tiles in a dungeon tile grid.
- See
DungeonTileGridRead
andDungeonTileGridWrite
. - See
DungeonTileGridRead
. - See
EntityTableRead
andEntityTableWrite
. - See
EntityTableRead
. - Helper struct for dealing with the current floor, the global dungeon and the mission state.
- Builder for creating dungeon message log messages.
Traits
- Trait for
DungeonMonsterRef
andDungeonMonsterMut
(read operations). - Extension trait for
MonsterSpeciesId
specific to dungeon mode. - Trait for
DungeonMonsterMut
(write operations). - Extension trait for
Move
specific to dungeon mode. - Extension trait for
MoveId
specific to dungeon mode. - Functions for reading from a tile grid.
- Functions for writing into a tile grid.
- Functions for reading data from an entity table.
- Functions for writing data into an entity table.
Functions
- Advances one frame. Does not return until the next frame starts.
- Note: unverified, ported from Irdkwia’s notes
- Do the stuff when you lose in a dungeon.
- Note: unverified, ported from Irdkwia’s notes
- Counts the number of digits in a nonnegative integer.
- Graphically displays any pending actions that have happened but haven’t been shown on screen yet.
- Note: unverified, ported from Irdkwia’s notes
- Note: unverified, ported from Irdkwia’s notes
- Note: unverified, ported from Irdkwia’s notes
- Fades the screen to black across several frames.
- Returns the Chebyshev distance between two positions. Calculated as max(abs(x0-x1), abs(y0-y1)).
- Gets the direction in which a monster should move to go from the origin position to the target position.
- Checks if a given target position is in sight from a given origin position.
- Note: unverified, ported from Irdkwia’s notes
- Note: unverified, ported from Irdkwia’s notes
- Note: unverified, ported from Irdkwia’s notes
DungeonMonsterRef::calc_damage
seems to use scratch space of some kind, which this function zeroes.- Zeroes the damage data struct, which is output by the damage calculation function.
- This changes the palettes of windows in both screens to an appropriate value depending on the playthrough.
Type Definitions
- Entity in a dungeon. Has a
DungeonEntityType
. - DungeonItemDeprecatedExtended info struct for
DungeonEntity
objects that are items. - A struct representing a single dungeon tile.
- Extended info struct for
DungeonEntity
objects that are traps.