Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
MapDBEntryWarpIn Struct Reference

A warp-in point: a destination spot other maps' warp-outs land on. More...

#include <mapdbentrywarpin.h>

Inheritance diagram for MapDBEntryWarpIn:
Collaboration diagram for MapDBEntryWarpIn:

Public Member Functions

int getX () const
 < Warp-in tile X.
int getY () const
const QVector< MapDBEntryWarpOut * > getToConnectingWarps () const
 Warp-outs that land here.
int getToConnectingWarpsSize () const
MapDBEntryWarpOutgetToConnectingWarpsAt (const int ind) const
 Connecting warp ind (for QML).
MapDBEntrygetParent () const
void qmlProtect (const QQmlEngine *const engine) const
 Pin to C++ ownership.

Protected Member Functions

 MapDBEntryWarpIn ()
 Empty entry.
 MapDBEntryWarpIn (const QJsonValue &data, MapDBEntry *const parent)
 Build from JSON under parent.
void qmlRegister () const
 Register with QML.

Protected Attributes

int x = 0
 Warp-in tile X.
int y = 0
 Warp-in tile Y.
QVector< MapDBEntryWarpOut * > toConnectingWarps
 Warp-outs arriving here (filled by warp-out deepLink).
MapDBEntryparent = nullptr
 Owning map.

Friends

class MapDBEntry
class MapsDB
class MapDBEntryWarpOut

Detailed Description

A warp-in point: a destination spot other maps' warp-outs land on.

Counterpart to MapDBEntryWarpOut – a warp-out targets a warp-in by index. The toConnectingWarps list (surfaced via size + invokable accessor) is the set of warp-outs that arrive here. A leaf of MapDBEntry. See db.md.

See also
MapDBEntry (parent), MapDBEntryWarpOut, WarpData (the save-side warp).

Definition at line 35 of file mapdbentrywarpin.h.

Constructor & Destructor Documentation

◆ MapDBEntryWarpIn() [1/2]

MapDBEntryWarpIn::MapDBEntryWarpIn ( )
protected

Empty entry.

Definition at line 27 of file mapdbentrywarpin.cpp.

References qmlRegister().

◆ MapDBEntryWarpIn() [2/2]

MapDBEntryWarpIn::MapDBEntryWarpIn ( const QJsonValue & data,
MapDBEntry *const parent )
protected

Build from JSON under parent.

Definition at line 30 of file mapdbentrywarpin.cpp.

References MapDBEntry, parent, qmlRegister(), x, and y.

Member Function Documentation

◆ getParent()

MapDBEntry * MapDBEntryWarpIn::getParent ( ) const
See also
getParent property.

Definition at line 50 of file mapdbentrywarpin.cpp.

References MapDBEntry, and parent.

◆ getToConnectingWarps()

const QVector< MapDBEntryWarpOut * > MapDBEntryWarpIn::getToConnectingWarps ( ) const

Warp-outs that land here.

Definition at line 60 of file mapdbentrywarpin.cpp.

References toConnectingWarps.

◆ getToConnectingWarpsAt()

MapDBEntryWarpOut * MapDBEntryWarpIn::getToConnectingWarpsAt ( const int ind) const

Connecting warp ind (for QML).

Definition at line 70 of file mapdbentrywarpin.cpp.

References MapDBEntryWarpOut, and toConnectingWarps.

◆ getToConnectingWarpsSize()

int MapDBEntryWarpIn::getToConnectingWarpsSize ( ) const
See also
getToConnectingWarpsSize property.

Definition at line 65 of file mapdbentrywarpin.cpp.

References toConnectingWarps.

◆ getX()

int MapDBEntryWarpIn::getX ( ) const

< Warp-in tile X.

Warp-in tile Y. Count of warp-outs arriving here. Owning map.

See also
getX property.

Definition at line 83 of file mapdbentrywarpin.cpp.

References x.

◆ getY()

int MapDBEntryWarpIn::getY ( ) const
See also
getY property.

Definition at line 78 of file mapdbentrywarpin.cpp.

References y.

◆ qmlProtect()

void MapDBEntryWarpIn::qmlProtect ( const QQmlEngine *const engine) const

Pin to C++ ownership.

Definition at line 55 of file mapdbentrywarpin.cpp.

References Utility::qmlProtectUtil().

◆ qmlRegister()

void MapDBEntryWarpIn::qmlRegister ( ) const
protected

Register with QML.

Definition at line 39 of file mapdbentrywarpin.cpp.

Referenced by MapDBEntryWarpIn(), and MapDBEntryWarpIn().

◆ MapDBEntry

friend class MapDBEntry
friend

Definition at line 67 of file mapdbentrywarpin.h.

References MapDBEntry.

Referenced by getParent(), MapDBEntry, and MapDBEntryWarpIn().

◆ MapDBEntryWarpOut

friend class MapDBEntryWarpOut
friend

Definition at line 69 of file mapdbentrywarpin.h.

References MapDBEntryWarpOut.

Referenced by getToConnectingWarpsAt(), and MapDBEntryWarpOut.

◆ MapsDB

friend class MapsDB
friend

Definition at line 68 of file mapdbentrywarpin.h.

References MapsDB.

Referenced by MapsDB.

Member Data Documentation

◆ parent

MapDBEntry* MapDBEntryWarpIn::parent = nullptr
protected

Owning map.

Definition at line 65 of file mapdbentrywarpin.h.

Referenced by getParent(), and MapDBEntryWarpIn().

◆ toConnectingWarps

QVector<MapDBEntryWarpOut*> MapDBEntryWarpIn::toConnectingWarps
protected

Warp-outs arriving here (filled by warp-out deepLink).

Definition at line 64 of file mapdbentrywarpin.h.

Referenced by getToConnectingWarps(), getToConnectingWarpsAt(), and getToConnectingWarpsSize().

◆ x

int MapDBEntryWarpIn::x = 0
protected

Warp-in tile X.

Definition at line 61 of file mapdbentrywarpin.h.

Referenced by getX(), and MapDBEntryWarpIn().

◆ y

int MapDBEntryWarpIn::y = 0
protected

Warp-in tile Y.

Definition at line 62 of file mapdbentrywarpin.h.

Referenced by getY(), and MapDBEntryWarpIn().


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