|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A warp-out point: a tile that warps the player to another map. More...
#include <mapdbentrywarpout.h>
Public Member Functions | |
| int | getX () const |
| < Warp-out tile X. | |
| int | getY () const |
| int | getWarp () const |
| const QString | getMap () const |
| bool | getGlitch () const |
| MapDBEntry * | getToMap () const |
| MapDBEntry * | getParent () const |
| MapDBEntryWarpIn * | getToWarp () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MapDBEntryWarpOut () | |
| Empty entry. | |
| MapDBEntryWarpOut (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| void | deepLink () |
| Resolve the destination map + warp-in. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| int | x = 0 |
| Warp-out tile X. | |
| int | y = 0 |
| Warp-out tile Y. | |
| int | warp = 0 |
| Target warp-in index. | |
| QString | map = "" |
| Destination map name. | |
| bool | glitch = false |
| Glitch/unintended warp. | |
| MapDBEntry * | toMap = nullptr |
| Resolved destination map (deepLink). | |
| MapDBEntry * | parent = nullptr |
| Owning map. | |
| MapDBEntryWarpIn * | toWarp = nullptr |
| Resolved destination warp-in (deepLink). | |
Friends | |
| class | MapDBEntry |
| class | MapsDB |
| class | MapDBEntryWarpIn |
A warp-out point: a tile that warps the player to another map.
As the note says, a warp-out can only target a "warp-in" point (warp index on map). deepLink() resolves toMap and toWarp. A leaf of MapDBEntry. See db.md.
Definition at line 37 of file mapdbentrywarpout.h.
|
protected |
|
protected |
Build from JSON under parent.
Definition at line 33 of file mapdbentrywarpout.cpp.
References glitch, map, MapDBEntry, parent, qmlRegister(), warp, x, and y.
|
protected |
Resolve the destination map + warp-in.
Definition at line 44 of file mapdbentrywarpout.cpp.
References MapsDB::getInd(), MapsDB::inst(), map, MapDBEntryWarpIn, toMap, toWarp, and warp.
| bool MapDBEntryWarpOut::getGlitch | ( | ) | const |
Definition at line 103 of file mapdbentrywarpout.cpp.
References glitch.
| const QString MapDBEntryWarpOut::getMap | ( | ) | const |
| MapDBEntry * MapDBEntryWarpOut::getParent | ( | ) | const |
Definition at line 93 of file mapdbentrywarpout.cpp.
References MapDBEntry, and parent.
| MapDBEntry * MapDBEntryWarpOut::getToMap | ( | ) | const |
Definition at line 98 of file mapdbentrywarpout.cpp.
References MapDBEntry, and toMap.
Referenced by WarpData::load().
| MapDBEntryWarpIn * MapDBEntryWarpOut::getToWarp | ( | ) | const |
Definition at line 83 of file mapdbentrywarpout.cpp.
References MapDBEntryWarpIn, and toWarp.
| int MapDBEntryWarpOut::getWarp | ( | ) | const |
Definition at line 113 of file mapdbentrywarpout.cpp.
References warp.
Referenced by WarpData::load().
| int MapDBEntryWarpOut::getX | ( | ) | const |
< Warp-out tile X.
Warp-out tile Y. Target warp-in index on the destination map. Destination map name. Whether this warp is unintended (glitch). Resolved destination map. Owning map. Resolved destination warp-in.
Definition at line 123 of file mapdbentrywarpout.cpp.
References x.
Referenced by WarpData::load().
| int MapDBEntryWarpOut::getY | ( | ) | const |
Definition at line 118 of file mapdbentrywarpout.cpp.
References y.
Referenced by WarpData::load().
| void MapDBEntryWarpOut::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 88 of file mapdbentrywarpout.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 72 of file mapdbentrywarpout.cpp.
Referenced by MapDBEntryWarpOut(), and MapDBEntryWarpOut().
|
friend |
Definition at line 87 of file mapdbentrywarpout.h.
References MapDBEntry.
Referenced by getParent(), getToMap(), MapDBEntry, and MapDBEntryWarpOut().
|
friend |
Definition at line 89 of file mapdbentrywarpout.h.
References MapDBEntryWarpIn.
Referenced by deepLink(), getToWarp(), and MapDBEntryWarpIn.
|
friend |
|
protected |
Glitch/unintended warp.
Definition at line 78 of file mapdbentrywarpout.h.
Referenced by getGlitch(), and MapDBEntryWarpOut().
|
protected |
Destination map name.
Definition at line 75 of file mapdbentrywarpout.h.
Referenced by deepLink(), getMap(), and MapDBEntryWarpOut().
|
protected |
Owning map.
Definition at line 82 of file mapdbentrywarpout.h.
Referenced by getParent(), and MapDBEntryWarpOut().
|
protected |
Resolved destination map (deepLink).
Definition at line 81 of file mapdbentrywarpout.h.
Referenced by deepLink(), and getToMap().
|
protected |
Resolved destination warp-in (deepLink).
Definition at line 85 of file mapdbentrywarpout.h.
Referenced by deepLink(), and getToWarp().
|
protected |
Target warp-in index.
Definition at line 72 of file mapdbentrywarpout.h.
Referenced by deepLink(), getWarp(), and MapDBEntryWarpOut().
|
protected |
Warp-out tile X.
Definition at line 68 of file mapdbentrywarpout.h.
Referenced by getX(), and MapDBEntryWarpOut().
|
protected |
Warp-out tile Y.
Definition at line 69 of file mapdbentrywarpout.h.
Referenced by getY(), and MapDBEntryWarpOut().