#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 () |
CreatureMgr Class Definition
Returns a creature using a tile to find which one to create or nullptr if a creature with that tile cannot be found
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.
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)
Creates a random creature based on the tile given
Creature* Ultima::Ultima4::CreatureMgr::randomForDungeon | ( | int | dnglevel | ) |
Creates a random creature based on the dungeon level given
Creature* Ultima::Ultima4::CreatureMgr::randomAmbushing | ( | ) |
Creates a random ambushing creature