ff7tk  0.02
Toolkit for making FF7 Tools
FF7FieldItemList.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2013 - 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 #include "FF7FieldItemList.h"
18 #include <QCoreApplication>
19 
21 QList<quint16> FF7FieldItemList::offset(int index){return FILIST[index].Offset;}
22 QList<quint8> FF7FieldItemList::bit(int index){return FILIST[index].Bit;}
23 QStringList FF7FieldItemList::maps(int index){return FILIST[index].Maps;}
24 QString FF7FieldItemList::text(int index){return qApp->translate("FieldItems",FILIST[index].Text.toLocal8Bit());}
25 int FF7FieldItemList::count(){return sizeof(FILIST)/sizeof(FILIST[0]);}
QList< quint16 > Offset
QList< quint8 > bit(int index)
bit list for an entry (one per offset)
QStringList Maps
QList< quint8 > Bit
QString text(int index)
item or desc of item
static const FieldItemList FILIST[]
int count()
total entries in FILIST
QList< quint16 > offset(int index)
offset list for an entry (offset[x] bit[x] are pairs needed to read/write correctly ...
QStringList maps(int index)
map list for an entry.