ff7tk  0.02
Toolkit for making FF7 Tools
FF7Location Class Reference

Info about field locations. More...

#include <FF7Location.h>

Public Member Functions

QString fileName (int i)
 get filename for location (flevel file) More...
 
QString fileName (int MapID, int LocID)
 get filename for location (flevel file) More...
 
QString locationString (int i)
 locations String showing menu More...
 
QString locationString (QString fileName)
 locations String showing menu More...
 
QString mapID (int i)
 get map id number More...
 
QString mapID (QString fileName)
 get map id number More...
 
QString locationID (int i)
 get location id number More...
 
QString locationID (QString fileName)
 get location id number More...
 
QString x (int i)
 x coord of save or valid placment More...
 
QString x (QString fileName)
 x coord of save or valid placment More...
 
QString y (int i)
 y coord of save or valid placment More...
 
QString y (QString fileName)
 y coord of save or valid placment More...
 
QString t (int i)
 triangle of save or valid placment More...
 
QString t (QString fileName)
 triangle of save or valid placment More...
 
QString d (int i)
 direction your facing More...
 
QString d (QString fileName)
 direction your facing More...
 
int len (void)
 how many items on the location list do we have More...
 

Detailed Description

Info about field locations.

Definition at line 36 of file FF7Location.h.

Member Function Documentation

QString FF7Location::d ( int  i)

direction your facing

Parameters
iNumber on the locations list
Returns
d as QString
See also
d(QString)

Definition at line 27 of file FF7Location.cpp.

References LOCATION::d, and Locations.

Referenced by LocationViewer::setLocation().

QString FF7Location::d ( QString  fileName)

direction your facing

Parameters
fileNamefileName of location
Returns
d as QString
See also
d(int)

Definition at line 92 of file FF7Location.cpp.

References LOCATION::d, len(), and Locations.

QString FF7Location::fileName ( int  i)

get filename for location (flevel file)

Parameters
iNumber on the location list
Returns
filename of the location
See also
fileName(int,int)

Definition at line 20 of file FF7Location.cpp.

References LOCATION::filename, and Locations.

Referenced by LocationViewer::chkAutoUpdateChanged(), LocationViewer::init_display(), LocationViewer::init_fieldItems(), LocationViewer::itemChanged(), LocationViewer::sbLocIdChanged(), LocationViewer::sbMapIdChanged(), and LocationViewer::setLocation().

QString FF7Location::fileName ( int  MapID,
int  LocID 
)

get filename for location (flevel file)

Parameters
MapIDMap Number location is on
LocIDLocation Id for location
Returns
filename of the location
See also
fileName()

Definition at line 29 of file FF7Location.cpp.

References LOCATION::filename, len(), and Locations.

int FF7Location::len ( void  )
inline

how many items on the location list do we have

Returns
length of Locations

Definition at line 156 of file FF7Location.h.

Referenced by d(), fileName(), LocationViewer::init_display(), locationID(), locationString(), mapID(), LocationViewer::setSelected(), t(), x(), and y().

QString FF7Location::locationID ( int  i)

get location id number

Parameters
iNumber on the locations list
Returns
location id as QString
See also
locationID(QString)

Definition at line 23 of file FF7Location.cpp.

References LOCATION::loc_id, and Locations.

Referenced by LocationViewer::init_display(), LocationViewer::itemChanged(), and LocationViewer::setLocation().

QString FF7Location::locationID ( QString  fileName)

get location id number

Parameters
fileNamefileName of location
Returns
locationID as QString
See also
locationID(int)

Definition at line 56 of file FF7Location.cpp.

References len(), LOCATION::loc_id, and Locations.

QString FF7Location::locationString ( int  i)

locations String showing menu

Parameters
iNumber on the locations list
Returns
Translated location string (as shown in menu/save preview)
See also
locationString(QString)

Definition at line 21 of file FF7Location.cpp.

References Locations.

Referenced by LocationViewer::init_display(), and LocationViewer::setLocation().

QString FF7Location::locationString ( QString  fileName)

locations String showing menu

Parameters
fileNamefileName of location
Returns
Translated location string (as shown in menu/save preview)
See also
locationString(int)

Definition at line 38 of file FF7Location.cpp.

References len(), LOCATION::location, and Locations.

QString FF7Location::mapID ( int  i)

get map id number

Parameters
iNumber on the locations list
Returns
MapID as QString
See also
mapID(QString)

Definition at line 22 of file FF7Location.cpp.

References Locations, and LOCATION::map_id.

Referenced by LocationViewer::init_display(), LocationViewer::itemChanged(), and LocationViewer::setLocation().

QString FF7Location::mapID ( QString  fileName)

get map id number

Parameters
fileNamefileName of location
Returns
MapID as QString
See also
mapID(int)

Definition at line 47 of file FF7Location.cpp.

References len(), Locations, and LOCATION::map_id.

QString FF7Location::t ( int  i)

triangle of save or valid placment

Parameters
iNumber on the locations list
Returns
triangle as QString
See also
t(QString)

Definition at line 26 of file FF7Location.cpp.

References Locations, and LOCATION::t.

Referenced by LocationViewer::setLocation().

QString FF7Location::t ( QString  fileName)

triangle of save or valid placment

Parameters
fileNamefileName of location
Returns
t as QString
See also
t(int)

Definition at line 83 of file FF7Location.cpp.

References len(), Locations, and LOCATION::t.

QString FF7Location::x ( int  i)

x coord of save or valid placment

Parameters
iNumber on the locations list
Returns
x as QString
See also
x(QString)

Definition at line 24 of file FF7Location.cpp.

References Locations, and LOCATION::x.

Referenced by LocationViewer::setLocation().

QString FF7Location::x ( QString  fileName)

x coord of save or valid placment

Parameters
fileNamefileName of location
Returns
x as QString
See also
x(int)

Definition at line 65 of file FF7Location.cpp.

References len(), Locations, and LOCATION::x.

QString FF7Location::y ( int  i)

y coord of save or valid placment

Parameters
iNumber on the locations list
Returns
y as QString
See also
y(QString)

Definition at line 25 of file FF7Location.cpp.

References Locations, and LOCATION::y.

Referenced by LocationViewer::setLocation().

QString FF7Location::y ( QString  fileName)

y coord of save or valid placment

Parameters
fileNamefileName of location
Returns
y as QString
See also
y(int)

Definition at line 74 of file FF7Location.cpp.

References len(), Locations, and LOCATION::y.


The documentation for this class was generated from the following files: