ff7tk 0.80.25
Work with Final Fantasy 7 game data
|
Data and Enums for Characters in Final Fantasy 7. More...
#include <FF7Char.h>
Public Types | |
enum | FF7CharId { Cloud , Barret , Tifa , Aerith , Red , Yuffie , CaitSith , Vincent , Cid , YoungCloud , Sephiroth , Empty = 0xFF } |
enum | FF7CharStatus { Sadness = 0x10 , Fury = 0x20 , BackRow = 0xFE , FrontRow = 0xFF } |
enum | CharSpecial { EmptyArmor = 0xFF , EmptyAccessory = 0xFF } |
Static Public Member Functions | |
static FF7Char * | instance () |
Get the FF7Char Instance. More... | |
static QObject * | qmlSingletonRegister (QQmlEngine *engine, QJSEngine *scriptEngine) |
Register The FF7Char Singleton for QML. More... | |
static Q_INVOKABLE quint8 | id (int who) |
get id value for Character More... | |
static Q_INVOKABLE int | numberOfWeapons (int who) |
number of weapons for a Character More... | |
static Q_INVOKABLE int | weaponStartingId (int who) |
find what item id is the first weapon for a Character More... | |
static Q_INVOKABLE int | weaponOffset (int who) |
find what weapon number is the first weapon for a Character More... | |
static Q_INVOKABLE QString | defaultName (int who) |
default name for a character More... | |
static QImage | image (int who) |
Menu icon for a character. More... | |
static QIcon | icon (int who) |
Menu icon for a character. More... | |
static QPixmap | pixmap (int who) |
Menu icon for a character. More... | |
static Q_INVOKABLE QStringList | limits (int who) |
Limit list for a character. More... | |
static Q_INVOKABLE quint32 | totalExpForLevel (int who, int level) |
Exp needed to reach a level. More... | |
static Q_INVOKABLE quint32 | tnlForLevel (int who, int level) |
experance needed to level up More... | |
static Q_INVOKABLE int | statGain (int who, int stat, int stat_amount, int current_lvl, int next_lvl) |
how much to increase stat on level up More... | |
static Q_INVOKABLE int | limitBitConvert (int bit) |
convert bit to limit offset More... | |
Data and Enums for Characters in Final Fantasy 7.
enum FF7Char::CharSpecial |
enum FF7Char::FF7CharId |
|
static |
default name for a character
who | Characters id number |
|
static |
|
static |
get id value for Character
who | persons id (they are almost always the same in stock game) |
|
static |
|
static |
Get the FF7Char Instance.
|
static |
convert bit to limit offset
bit | to convert |
|
static |
Limit list for a character.
who | Characters id number |
|
static |
number of weapons for a Character
who | Characters id number |
|
static |
|
static |
Register The FF7Char Singleton for QML.
|
static |
how much to increase stat on level up
who | Characters id number |
stat | Stat you want to gain a point in (stat: 0 str, 1 vit, 2 mag, 3 spi, 4 dex, 5 luck,6 hp,7mp) |
stat_amount | current value for that stat |
current_lvl | characters current level |
next_lvl | level the character is becoming |
|
static |
experance needed to level up
who | Characters id number |
level | Level you are trying to reach |
|
static |
Exp needed to reach a level.
who | Characters id number |
level | Level you want to reach |
|
static |
find what weapon number is the first weapon for a Character
who | Characters id number |
|
static |
find what item id is the first weapon for a Character
who | Characters id number |