ScummVM API documentation
Ultima::Ultima2::Data::MapMonsters Struct Reference

#include <map_monsters.h>

Public Member Functions

void load (int mapEra, int mapType)
 
void synchronize (Common::Serializer &s)
 
bool isActive (int slot) const
 
TileId tileType (int slot) const
 

Public Attributes

byte _mapX [MAP_MONSTER_COUNT] = {}
 
byte _mapY [MAP_MONSTER_COUNT] = {}
 
byte _spellHP [MAP_MONSTER_COUNT] = {}
 
byte _type [MAP_MONSTER_COUNT] = {}
 
byte _glyphTile [MAP_MONSTER_COUNT] = {}
 
byte _offerFlag [MAP_MONSTER_COUNT] = {}
 
byte _tempX [MAP_MONSTER_COUNT] = {}
 
byte _tempY [MAP_MONSTER_COUNT] = {}
 

Detailed Description

Up to 32 monster/NPC slots for the current map, stored as a struct-of-arrays – one array per field, with a monster's slot index (0-31) shared across all of them – rather than one struct per monster.


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