|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A map sprite that is a plain NPC (type NPC). More...
#include <mapdbentryspritenpc.h>
Public Member Functions | |
| virtual SpriteType | type () const |
| Returns NPC. | |
| Public Member Functions inherited from MapDBEntrySprite | |
| int | adjustedX () const |
| int | adjustedY () const |
| const QString | getSprite () const |
| int | getX () const |
| int | getY () const |
| const QString | getMove () const |
| int | getText () const |
| int | getRange () const |
| const QString | getFace () const |
| int | getMissable () const |
| MissableDBEntry * | getToMissable () const |
| SpriteDBEntry * | getToSprite () const |
| MapDBEntry * | getParent () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MapDBEntrySpriteNPC (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| virtual void | qmlRegister () const |
| Register with QML. | |
| Protected Member Functions inherited from MapDBEntrySprite | |
| MapDBEntrySprite () | |
| Empty entry. | |
| MapDBEntrySprite (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| virtual void | deepLink () |
| Resolve sprite/missable links. | |
Friends | |
| class | MapDBEntry |
Additional Inherited Members | |
| Public Types inherited from MapDBEntrySprite | |
| enum | SpriteType { NPC , ITEM , POKEMON , TRAINER , ERROR } |
| < X adjusted for Gen 1 placement. More... | |
| Protected Attributes inherited from MapDBEntrySprite | |
| QString | sprite |
| Sprite name (read via getSprite()). | |
| int | x = 0 |
| Raw X. | |
| int | y = 0 |
| Raw Y. | |
| QString | move = "" |
| Movement mode (see note). | |
| int | text = -1 |
| Interaction text id. | |
| int | range = -1 |
| Wander range (exclusive with face). | |
| QString | face = "" |
| Static facing (exclusive with range). | |
| int | missable = -1 |
| Missable index, or -1. | |
| MissableDBEntry * | toMissable = nullptr |
| Resolved missable (deepLink). | |
| SpriteDBEntry * | toSprite = nullptr |
| Resolved sprite picture (deepLink). | |
| MapDBEntry * | parent = nullptr |
| Owning map. | |
A map sprite that is a plain NPC (type NPC).
Adds nothing beyond MapDBEntrySprite's common fields – a talking NPC is fully described by the base data. type() returns NPC. See db.md.
Definition at line 31 of file mapdbentryspritenpc.h.
|
protected |
Build from JSON under parent.
Definition at line 25 of file mapdbentryspritenpc.cpp.
References MapDBEntry, MapDBEntrySprite::MapDBEntrySprite(), MapDBEntrySprite::parent, and qmlRegister().
|
protectedvirtual |
Register with QML.
Reimplemented from MapDBEntrySprite.
Definition at line 32 of file mapdbentryspritenpc.cpp.
Referenced by MapDBEntrySpriteNPC().
|
virtual |
Returns NPC.
Reimplemented from MapDBEntrySprite.
Definition at line 43 of file mapdbentryspritenpc.cpp.
References MapDBEntrySprite::NPC.
|
friend |
Definition at line 42 of file mapdbentryspritenpc.h.
References MapDBEntry.
Referenced by MapDBEntry, and MapDBEntrySpriteNPC().