109 const QVector<MapDBEntryWarpOut*>
getWarpOut()
const;
113 const QVector<MapDBEntryWarpIn*>
getWarpIn()
const;
117 const QVector<MapDBEntrySign*>
getSigns()
const;
121 const QVector<MapDBEntrySprite*>
getSprites()
const;
125 const QHash<int, MapDBEntryConnect*>
getConnect()
const;
131 const QVector<MapDBEntryWildMon*>
getMonsRed()
const;
135 const QVector<MapDBEntryWildMon*>
getMonsBlue()
const;
173 void qmlProtect(
const QQmlEngine*
const engine)
const;
class SAVEFILE_AUTOPORT MapDBEntry
The maps database – every map and its full layout, keyed by name.
Import/export macro for the db library, plus the central list of DB entry pointer types declared opaq...
#define DB_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.
One story-event definition: its name and where its flag lives in the save.
One fly destination: its name/index and the map it flies to.
One hidden pickup's location: its map and tile coordinates.
One edge connection of a map (the seam to a neighbouring map).
One sign defined on a map: its position and text id.
A map's sprite definition – base class for the four sprite kinds.
A warp-in point: a destination spot other maps' warp-outs land on.
A warp-out point: a tile that warps the player to another map.
One wild-encounter slot in a map's encounter table: species + level.
const QVector< EventDBEntry * > getToEvents() const
Events associated with this map.
const QVector< MapDBEntryWarpOut * > getWarpOut() const
Outgoing warps.
const QString getTileset() const
ScriptDBEntry * getToScript() const
const QString getIncomplete() const
void deepLink()
Resolve the full cross-reference web.
QVector< HiddenItemDBEntry * > toHiddenItems
int textPtr
Map text pointer.
QVector< MapDBEntryWildMon * > monsBlue
Blue-version land encounters.
const MapDBEntryWildMon * getMonsRedAt(const int ind) const
Red wild ind (for QML).
int border
Border block number.
SpriteSetDBEntry * toSpriteSet
Resolved sprite set (deepLink).
QVector< MapDBEntryWildMon * > monsWater
Water encounters (shared; see note).
int scriptPtr
Map script pointer.
FlyDBEntry * toFlyDestination
const QString getName() const
TilesetDBEntry * getToTileset() const
int getWarpInSize() const
int getWarpOutSize() const
SpriteSetDBEntry * getToSpriteSet() const
QString tileset
Tileset name.
const MapDBEntryConnect * getConnectAt(const int val) const
Connection in direction val (for QML).
int height
Height (blocks).
friend struct ScriptDBEntry
MapDBEntry()
Empty entry (built by MapsDB).
QVector< MapDBEntryWarpOut * > warpOut
Outgoing warps.
int spriteSet
Sprite-set index.
bool glitch
Backing field (read via getGlitch()).
int getToEventsSize() const
friend struct EventDBEntry
int dataPtr
Map data pointer.
int getToHiddenItemsSize() const
void qmlProtect(const QQmlEngine *const engine) const
Pin to C++ ownership.
int getMonsWaterSize() const
bool special
Backing field (read via getSpecial()).
QVector< MapDBEntryWildMon * > monsRed
Red-version land encounters.
const QVector< MapDBEntrySprite * > getSprites() const
Sprites on the map.
int getMonsBlueSize() const
const QVector< MapDBEntryWildMon * > getMonsBlue() const
Blue-version wild encounters.
friend struct HiddenItemDBEntry
void qmlRegister() const
Register with QML.
TilesetDBEntry * toTileset
const QVector< MapDBEntryWarpIn * > getWarpIn() const
Incoming warps.
const QVector< MapDBEntryWildMon * > getMonsWater() const
Water wild encounters.
QVector< MapDBEntryWarpIn * > warpIn
Incoming warps.
QVector< MapDBEntrySprite * > sprites
Sprites.
const QVector< MapDBEntrySign * > getSigns() const
Signs on the map.
int getMonRateWater() const
const QVector< MapDBEntryWildMon * > getMonsRed() const
Red-version wild encounters.
const MapDBEntrySprite * getSpritesAt(const int ind) const
Sprite ind (for QML).
const MapDBEntryWarpIn * getWarpInAt(const int ind) const
Incoming warp ind (for QML).
FlyDBEntry * getToFlyDestination() const
const MapDBEntryWildMon * getMonsWaterAt(const int ind) const
Water wild ind (for QML).
int getSpritesSize() const
QVector< MapDBEntrySign * > signs
Signs.
int getMonsRedSize() const
const QString getModernName() const
const QString getMusic() const
const MapDBEntryWarpOut * getWarpOutAt(const int ind) const
Outgoing warp ind (for QML).
const MapDBEntrySign * getSignsAt(const int ind) const
Sign ind (for QML).
const QString bestName() const
< Best display name (modern/internal).
ScriptDBEntry * toScript
Resolved script (deepLink).
int monRate
Land encounter rate.
QVector< EventDBEntry * > toEvents
QHash< int, MapDBEntryConnect * > connect
Edge connections by direction.
QString modernName
Modern display name.
MusicDBEntry * getToMusic() const
const EventDBEntry * getToEventsAt(const int ind) const
Associated event ind (for QML).
const HiddenItemDBEntry * getToHiddenItemsAt(const int ind) const
Hidden item ind (for QML).
int monRateWater
Water encounter rate.
int height2X2() const
Height x2 (derived; see note).
QString name
Backing field (read via getName()).
int width2X2() const
Width x2 (derived; see note).
MapDBEntry * getToComplete() const
const MapDBEntryWildMon * getMonsBlueAt(const int ind) const
Blue wild ind (for QML).
const QVector< HiddenItemDBEntry * > getToHiddenItems() const
Hidden items on this map.
const QHash< int, MapDBEntryConnect * > getConnect() const
Edge connections by direction.
QString incomplete
Incomplete-map marker.
int ind
Backing field (read via getInd()).
One music track: its name and bank/id, plus the maps that use it.
One map-script definition: its id/size and which maps use it.
One sprite-set: the pre-loaded sprite group for an outdoor area.
One tileset definition: its type, graphics/block/collision pointers, etc.