ff7tk
1.2.0.14
Work with Final Fantasy 7 game data
|
Data and Enums for Characters in Final Fantasy 7. More...
#include <FF7Char.h>
Public Types | |
enum | CharacterId { Cloud, Barret, Tifa, Aerith, Red, Yuffie, CaitSith, Vincent, Cid, YoungCloud, Sephiroth, Chocobo, Empty = 0xFF } |
enum | CharacterStatus { Normal = 0, Sadness = 0x10, Fury = 0x20 } |
enum | CharacterRow { BackRow = 0xFE, FrontRow = 0xFF } |
enum | CharacterSpecial { EmptyArmor = 0xFF, EmptyAccessory = 0xFF } |
Static Public Member Functions | |
static FF7Char * | get () |
Get the FF7Char Instance. More... | |
static Q_INVOKABLE quint8 | id (int who) |
get id value for Character More... | |
static int | totalCharacters () |
static Q_INVOKABLE bool | validID (int id) |
validID 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... | |
static Q_INVOKABLE QByteArray | toByteArray (FF7CHAR ff7char) |
Convert a FF7CHAR to QByteArray. More... | |
static Q_INVOKABLE FF7CHAR | fromByteArray (const QByteArray &ba) |
Convert a QByteArray to FF7CHAR. More... | |
Data and Enums for Characters in Final Fantasy 7.
enum FF7Char::CharacterId |
|
static |
default name for a character
who | Characters id number |
|
static |
Convert a QByteArray to FF7CHAR.
ba | the QByteArray to convet |
|
static |
|
static |
get id value for Character
who | persons id (they are almost always the same in stock game) |
|
static |
|
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 |
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 |
Convert a FF7CHAR to QByteArray.
ff7char | the FF7CHAR to convet |
|
inlinestatic |
|
static |
Exp needed to reach a level.
who | Characters id number |
level | Level you want to reach |
|
static |
validID
id | -ID to check |
|
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 |