ff7tk  0.02
Toolkit for making FF7 Tools
Type_FF7CHAR.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2012 -2016 Chris Rizzitello <sithlord48@gmail.com> //
3 // //
4 // This file is part of FF7tk //
5 // //
6 // FF7tk is free software: you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation, either version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // FF7tk is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License for more details. //
15 /****************************************************************************/
16 
17 #ifndef TYPE_FF7CHAR_H
18 #define TYPE_FF7CHAR_H
19 
20 #include "Type_materia.h"
21 
28 PACK(
29 struct FF7CHAR {
30  quint8 id;
31  quint8 level;
32  quint8 strength;
33  quint8 vitality;
34  quint8 magic;
35  quint8 spirit;
36  quint8 dexterity;
37  quint8 luck;
38  quint8 strength_bonus;
39  quint8 vitality_bonus;
40  quint8 magic_bonus;
41  quint8 spirit_bonus;
42  quint8 dexterity_bonus;
43  quint8 luck_bonus;
44  qint8 limitlevel;
45  quint8 limitbar;
46  quint8 name[12];
47  quint8 weapon;
48  quint8 armor;
49  quint8 accessory;
50  quint8 flags[3];
51  quint16 limits;
52  quint16 kills;
53  quint16 timesused1;
54  quint16 timesused2;
55  quint16 timesused3;
56  quint16 curHP;
57  quint16 baseHP;
58  quint16 curMP;
59  quint16 baseMP;
60  quint8 z_4[4];
61  quint16 maxHP;
62  quint16 maxMP;
63  quint32 exp;
64  materia materias[16];
65  quint32 expNext;
66 });
67 #endif //< TYPE_FF7CHAR_H
Character Info in the save game.
PACK(struct FF7CHAR{quint8 id;quint8 level;quint8 strength;quint8 vitality;quint8 magic;quint8 spirit;quint8 dexterity;quint8 luck;quint8 strength_bonus;quint8 vitality_bonus;quint8 magic_bonus;quint8 spirit_bonus;quint8 dexterity_bonus;quint8 luck_bonus;qint8 limitlevel;quint8 limitbar;quint8 name[12];quint8 weapon;quint8 armor;quint8 accessory;quint8 flags[3];quint16 limits;quint16 kills;quint16 timesused1;quint16 timesused2;quint16 timesused3;quint16 curHP;quint16 baseHP;quint16 curMP;quint16 baseMP;quint8 z_4[4];quint16 maxHP;quint16 maxMP;quint32 exp;materia materias[16];quint32 expNext;})
materia format saved in materia list or on a character