ff7tk  0.02
Toolkit for making FF7 Tools
Type_FF7CHOCOBO.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_FF7CHOCOBO_H
18 #define TYPE_FF7CHOCOBO_H
19 
20 #ifdef _MSC_VER
21 # define PACK(structure) \
22  __pragma(pack(push, 1)) \
23  structure \
24  __pragma(pack(pop))
25 #elif defined(__MINGW32__)
26  #define PACK(structure) structure __attribute__ ((gcc_struct, __packed__))
27 #else
28  #define PACK(structure) structure Q_PACKED
29 #endif
30 
38 PACK(
39 struct FF7CHOCOBO {
40  quint16 sprintspd;
41  quint16 maxsprintspd;
42  quint16 speed;
43  quint16 maxspeed;
44  quint8 accel;
45  quint8 coop;
46  quint8 intelligence;
47  quint8 personality;
48  quint8 pcount;
49  quint8 raceswon;
50  quint8 sex;
51  quint8 type;
52 });
53 
54 #endif // TYPE_FF7CHOCOBO_H
a chocobo in save game
#define PACK(structure)