|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A map sprite that is a pick-up item (type ITEM). More...
#include <mapdbentryspriteitem.h>
Public Member Functions | |
| virtual SpriteType | type () const |
| < Item name given. | |
| const QString | getItem () const |
| ItemDBEntry * | getToItem () const |
| 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 | |
| MapDBEntrySpriteItem (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| virtual void | deepLink () |
| Resolve the item link. | |
| 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. | |
Protected Attributes | |
| QString | item = "" |
| Item name (read via getItem()). | |
| ItemDBEntry * | toItem = nullptr |
| Resolved item (deepLink). | |
| 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. | |
Friends | |
| class | MapsDB |
| class | MapDBEntry |
Additional Inherited Members | |
| Public Types inherited from MapDBEntrySprite | |
| enum | SpriteType { NPC , ITEM , POKEMON , TRAINER , ERROR } |
| < X adjusted for Gen 1 placement. More... | |
A map sprite that is a pick-up item (type ITEM).
Adds the item it gives (resolved to toItem in deepLink) to the common MapDBEntrySprite base. type() returns ITEM. See db.md.
Definition at line 32 of file mapdbentryspriteitem.h.
|
protected |
Build from JSON under parent.
Definition at line 29 of file mapdbentryspriteitem.cpp.
References item, MapDBEntry, MapDBEntrySprite::MapDBEntrySprite(), MapDBEntrySprite::parent, and qmlRegister().
|
protectedvirtual |
Resolve the item link.
Reimplemented from MapDBEntrySprite.
Definition at line 37 of file mapdbentryspriteitem.cpp.
References MapDBEntrySprite::deepLink(), ItemsDB::getInd(), ItemsDB::inst(), item, and toItem.
| const QString MapDBEntrySpriteItem::getItem | ( | ) | const |
| ItemDBEntry * MapDBEntrySpriteItem::getToItem | ( | ) | const |
Definition at line 60 of file mapdbentryspriteitem.cpp.
References toItem.
|
protectedvirtual |
Register with QML.
Reimplemented from MapDBEntrySprite.
Definition at line 75 of file mapdbentryspriteitem.cpp.
Referenced by MapDBEntrySpriteItem().
|
virtual |
< Item name given.
Resolved item. Returns ITEM.
Reimplemented from MapDBEntrySprite.
Definition at line 70 of file mapdbentryspriteitem.cpp.
References MapDBEntrySprite::ITEM.
|
friend |
Definition at line 54 of file mapdbentryspriteitem.h.
References MapDBEntry.
Referenced by MapDBEntry, and MapDBEntrySpriteItem().
|
friend |
|
protected |
Item name (read via getItem()).
Definition at line 50 of file mapdbentryspriteitem.h.
Referenced by deepLink(), getItem(), and MapDBEntrySpriteItem().
|
protected |
Resolved item (deepLink).
Definition at line 52 of file mapdbentryspriteitem.h.
Referenced by deepLink(), and getToItem().