ScummVM API documentation
Ultima::Ultima1::Data::MapDungeon Struct Reference

Public Member Functions

void generateDungeonLevel ()
 
void killMonster (int x, int y)
 
void spawnMonsterAt (int x, int y)
 
void synchronize (Common::Serializer &s)
 

Public Attributes

DungeonCell _cells [DUNGEON_HEIGHT][DUNGEON_WIDTH]
 

Member Function Documentation

◆ generateDungeonLevel()

void Ultima::Ultima1::Data::MapDungeon::generateDungeonLevel ( )

Generates a dungeon level

◆ killMonster()

void Ultima::Ultima1::Data::MapDungeon::killMonster ( int  x,
int  y 
)

Removes a slain monster from the given cell, freeing up its monster slot, then spawns a fresh monster elsewhere in its place

◆ spawnMonsterAt()

void Ultima::Ultima1::Data::MapDungeon::spawnMonsterAt ( int  x,
int  y 
)

Spawns a monster into a specific cell (the original's shiftCoffin) - used when opening a coffin. Does nothing unless the cell is open floor/a ladder and unoccupied. Unlike a kill, no slot is freed first, so it will reuse an already-taken slot after enough tries


The documentation for this struct was generated from the following file: