|
ff7tk
0.02
Toolkit for making FF7 Tools
|
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 } |
Public Member Functions | |
| FF7Char () | |
| quint8 | id (int who) |
| get id value for Character More... | |
| int | numberOfWeapons (int who) |
| number of weapons for a Character More... | |
| int | weaponStartingId (int who) |
| find what item id is the first weapon for a Character More... | |
| int | weaponOffset (int who) |
| find what weapon number is the first weapon for a Character More... | |
| QString | defaultName (int who) |
| default name for a character More... | |
| QImage | image (int who) |
| Menu icon for a character. More... | |
| QIcon | icon (int who) |
| Menu icon for a character. More... | |
| QPixmap | pixmap (int who) |
| Menu icon for a character. More... | |
| QStringList | limits (int who) |
| Limit list for a character. More... | |
| quint32 | totalExpForLevel (int who, int level) |
| Exp needed to reach a level. More... | |
| quint32 | tnlForLevel (int who, int level) |
| experance needed to level up More... | |
| int | statGain (int who, int stat, int stat_amount, int current_lvl, int next_lvl) |
| how much to increase stat on level up More... | |
Private Member Functions | |
| quint8 | stat_grade (int who, int stat) |
| characters grade in a stat More... | |
| int | mp_base (int who, int lvl_bracket) |
| characters base mp for set of levels More... | |
| quint8 | mp_gradent (int who, int lvl_bracket) |
| characters mp gradent for set of levels More... | |
| int | hp_base (int who, int lvl_bracket) |
| characters base hp for set of levels More... | |
| quint8 | hp_gradent (int who, int lvl_bracket) |
| characters mp gradent for set of levels More... | |
| int | luck_base (int who, int lvl_bracket) |
| characters base luck for set of levels More... | |
| quint8 | luck_gradent (int who, int lvl_bracket) |
| characters luck gradent for set of levels More... | |
| quint8 | stat_base (int rank, int lvl_bracket) |
| base stat for rank in a set of levels More... | |
| quint8 | stat_gradent (int rank, int lvl_bracket) |
| characters mp gradent for set of levels More... | |
| enum FF7Char::CharSpecial |
| enum FF7Char::FF7CharId |
|
explicit |
Definition at line 20 of file FF7Char.cpp.
| QString FF7Char::defaultName | ( | int | who | ) |
default name for a character
| who | Characters id number |
Definition at line 40 of file FF7Char.cpp.
References Chars.
Referenced by CharEditor::init_display(), and CharManager::initDisplay().
|
private |
characters base hp for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 33 of file FF7Char.cpp.
References Character::_hp_base, and Chars.
Referenced by statGain().
|
private |
characters mp gradent for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 34 of file FF7Char.cpp.
References Character::_hp_gradent, and Chars.
Referenced by statGain().
| QIcon FF7Char::icon | ( | int | who | ) |
Menu icon for a character.
| who | Characters id number |
Definition at line 27 of file FF7Char.cpp.
References pixmap().
Referenced by CharEditor::init_display(), and CharManager::initDisplay().
| quint8 FF7Char::id | ( | int | who | ) |
get id value for Character
| who | persons id (they are almost always the same in stock game) |
Definition at line 21 of file FF7Char.cpp.
References Character::_id, and Chars.
| QImage FF7Char::image | ( | int | who | ) |
Menu icon for a character.
| who | Characters id number |
Definition at line 26 of file FF7Char.cpp.
References Chars.
| QStringList FF7Char::limits | ( | int | who | ) |
Limit list for a character.
| who | Characters id number |
Definition at line 42 of file FF7Char.cpp.
References Character::_limits, and Chars.
Referenced by CharEditor::setChar().
|
private |
characters base luck for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 35 of file FF7Char.cpp.
References Character::_luck_base, and Chars.
Referenced by statGain().
|
private |
characters luck gradent for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 36 of file FF7Char.cpp.
References Character::_luck_gradent, and Chars.
Referenced by statGain().
|
private |
characters base mp for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 31 of file FF7Char.cpp.
References Character::_mp_base, and Chars.
Referenced by statGain().
|
private |
characters mp gradent for set of levels
| who | Characters id number |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 32 of file FF7Char.cpp.
References Character::_mp_gradent, and Chars.
Referenced by statGain().
| int FF7Char::numberOfWeapons | ( | int | who | ) |
number of weapons for a Character
| who | Characters id number |
Definition at line 24 of file FF7Char.cpp.
References Character::_num_weapons, and Chars.
Referenced by CharEditor::MaxEquip(), CharEditor::setChar(), and CharEditor::setWeapon().
| QPixmap FF7Char::pixmap | ( | int | who | ) |
Menu icon for a character.
| who | Characters id number |
Definition at line 25 of file FF7Char.cpp.
References Chars.
Referenced by icon(), CharEditor::setChar(), and SlotSelect::setSlotPreview().
|
private |
base stat for rank in a set of levels
| rank | Rank character is at start (grade) |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 37 of file FF7Char.cpp.
References _stat_base.
Referenced by statGain().
|
private |
characters grade in a stat
| who | Characters id number |
| stat | Stat you want to get grade for (stat: 0 str, 1 vit, 2 mag, 3 spi, 4 dex, 5 luck,6 hp,7mp) |
Definition at line 30 of file FF7Char.cpp.
References Character::_stat_grade, and Chars.
Referenced by statGain().
|
private |
characters mp gradent for set of levels
| rank | Rank character is at start (grade) |
| lvl_bracket | bracket the level falls in (0: lvl 0-9 . 1: 10-19. etc..) |
Definition at line 38 of file FF7Char.cpp.
References _stat_gradent.
Referenced by statGain().
| int FF7Char::statGain | ( | int | who, |
| int | stat, | ||
| int | stat_amount, | ||
| int | current_lvl, | ||
| int | next_lvl | ||
| ) |
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 |
Definition at line 52 of file FF7Char.cpp.
References hp_base(), hp_gradent(), luck_base(), luck_gradent(), mp_base(), mp_gradent(), stat_base(), stat_grade(), and stat_gradent().
Referenced by CharEditor::level_up().
| quint32 FF7Char::tnlForLevel | ( | int | who, |
| int | level | ||
| ) |
experance needed to level up
| who | Characters id number |
| level | Level you are trying to reach |
Definition at line 29 of file FF7Char.cpp.
References Character::_chartnls, and Chars.
Referenced by CharEditor::update_tnl_bar().
| quint32 FF7Char::totalExpForLevel | ( | int | who, |
| int | level | ||
| ) |
Exp needed to reach a level.
| who | Characters id number |
| level | Level you want to reach |
Definition at line 28 of file FF7Char.cpp.
References Character::_charlvls, and Chars.
Referenced by CharEditor::Exp_Changed(), CharEditor::Level_Changed(), and CharEditor::update_tnl_bar().
| int FF7Char::weaponOffset | ( | int | who | ) |
find what weapon number is the first weapon for a Character
| who | Characters id number |
Definition at line 23 of file FF7Char.cpp.
References Character::_weapon_offset, and Chars.
Referenced by CharEditor::setChar(), and CharEditor::setWeapon().
| int FF7Char::weaponStartingId | ( | int | who | ) |
find what item id is the first weapon for a Character
| who | Characters id number |
Definition at line 22 of file FF7Char.cpp.
References Character::_starting_weapon_id, and Chars.
Referenced by CharEditor::setChar().