Tactics: Western Philosophers Vs. Musicians
0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
|
#include <PFWaypointCollection.h>
Classes | |
struct | lessThan |
struct | WhoGoesWhereDef |
Public Member Functions | |
void | loadWPC (const char *wPC_) |
Math::Point< int > | getWPCBin (const Math::Point<> &pos_) const |
bool | getWPCBin (const Math::Point<> &pos_, Math::Point< int > &wPCBin_) const |
Math::Point< int > | getNearestWPCBin (const Math::Point<> &pos_) const |
Math::Point< int > | getWPCBin (const Math::Point< int > &gridBin_, const CD::Grid *grid_) const |
bool | getWPCBin (const Math::Point< int > &gridBin_, const CD::Grid *grid_, Math::Point< int > &wPCBin_) const |
Math::Point< int > | getNearestWPCBin (const Math::Point< int > &gridBin_, const CD::Grid *grid_) const |
int | getWGWDIndex (Math::Point< int > &drivBin_, Math::Point< int > &targBin_, const CD::Grid *grid_) const |
int | getWGWDIndex (const Math::Point<> &drivPos_, const Math::Point<> &targPos_) const |
void | getPath (int wGWDIndex_, const Math::Point<> &drivPos_, const Math::Point<> &targPos_, Math::Path &path_) const |
const Math::Point & | getMaxCorner () const |
void | translate (const Math::Point<> &delta_) |
const Math::Point & | getSize () const |
const Math::Point< Utils::uint > & | getAxisDivs () const |
const Math::Point & | getBinSize () const |
Public Attributes | |
std::vector< WhoGoesWhereDef * > | _defs |
A WaypointCollection can be used to describe large sets of complex hardcoded paths with minimal notation. Sets of CD::Grid bins map to other bin sets. After a driver and target are determined to occupy specific bins, a bin-bin mapping is searched for in the WaypointCollection. If one is found, then a path getting from the driver to the target is returned (these paths are determined offline).
|
inline |
Returns the # of divisions of each axis for the WPC grid.
|
inline |
Returns the bin size (the spatial distance between axis divisions) for each axis of the WPC grid.
|
inline |
Returns the max x, max y, and max z relative to the WPC grid.
|
inline |
Gets the WPC grid's bin nearest a given point.
|
inline |
Gets the WPC grid's bin nearest the center of a bin in another grid.
void OpenSkyNet::PF::WaypointCollection::getPath | ( | int | wGWDIndex_, |
const Math::Point<> & | drivPos_, | ||
const Math::Point<> & | targPos_, | ||
Math::Path & | path_ | ||
) | const |
Sets the "out" path_ parameter to a path from drivPos_ to targPos_ using the waypoints defined by the wGWDIndex_.
|
inline |
Returns the WPC grid's size.
int OpenSkyNet::PF::WaypointCollection::getWGWDIndex | ( | Math::Point< int > & | drivBin_, |
Math::Point< int > & | targBin_, | ||
const CD::Grid * | grid_ | ||
) | const |
Input drivBin_/targBin_ are the grid_ bins; they are the WPC bins after the function returns. Returns -1 if no WGWD found.
int OpenSkyNet::PF::WaypointCollection::getWGWDIndex | ( | const Math::Point<> & | drivPos_, |
const Math::Point<> & | targPos_ | ||
) | const |
Returns -1 if no WGWD found.
|
inline |
Gets the WPC grid's bin given a point. The components will be out of range ( < 0 or > max dimension size ) if the point lies outside the grid.
|
inline |
Gets the WPC grid's bin given a point. Returns false if the point lies outside the grid.
|
inline |
Gets the WPC grid's bin for the center of a bin in another grid. The components will be out of range ( < 0 or > max dimension size ) if the supplied bin's center lies outside the WPC grid.
|
inline |
Gets the WPC grid's bin for the center of a bin in another grid. Returns false if the supplied bin's center lies outside the WPC grid.
void OpenSkyNet::PF::WaypointCollection::loadWPC | ( | const char * | wPC_ | ) |
Load a *.wpc.xml file
|
inline |
Translate the WPC grid.
std::vector<WhoGoesWhereDef*> OpenSkyNet::PF::WaypointCollection::_defs |