ScummVM API documentation
Ultima::Ultima4::CreatureMgr Class Reference

#include <creature.h>

Public Member Functions

void loadAll ()
 
Creature * getByTile (MapTile tile)
 
Creature * getById (CreatureId id)
 
Creature * getByName (Common::String name)
 
Creature * randomForTile (const Tile *tile)
 
Creature * randomForDungeon (int dnglevel)
 
Creature * randomAmbushing ()
 

Static Public Member Functions

static CreatureMgr * getInstance ()
 

Detailed Description

CreatureMgr Class Definition

Member Function Documentation

◆ getByTile()

Creature * Ultima::Ultima4::CreatureMgr::getByTile ( MapTile  tile)

Returns a creature using a tile to find which one to create or nullptr if a creature with that tile cannot be found

◆ getById()

Creature * Ultima::Ultima4::CreatureMgr::getById ( CreatureId  id)

Returns the creature that has the corresponding id or returns nullptr if no creature with that id could be found.

◆ getByName()

Creature * Ultima::Ultima4::CreatureMgr::getByName ( Common::String  name)

Returns the creature that has the corresponding name or returns nullptr if no creature can be found with that name (case insensitive)

◆ randomForTile()

Creature * Ultima::Ultima4::CreatureMgr::randomForTile ( const Tile *  tile)

Creates a random creature based on the tile given

◆ randomForDungeon()

Creature * Ultima::Ultima4::CreatureMgr::randomForDungeon ( int  dnglevel)

Creates a random creature based on the dungeon level given

◆ randomAmbushing()

Creature * Ultima::Ultima4::CreatureMgr::randomAmbushing ( )

Creates a random ambushing creature


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