ManaPlus
Public Member Functions | Data Fields
MetaTile Struct Reference

#include <metatile.h>

Public Member Functions

 MetaTile ()
 

Data Fields

int Fcost
 
int Gcost
 
int Hcost
 
unsigned whichList
 
int parentX
 
int parentY
 
unsigned char blockmask
 

Detailed Description

A meta tile stores additional information about a location on a tile map. This is information that doesn't need to be repeated for each tile in each layer of the map.

Definition at line 33 of file metatile.h.

Constructor & Destructor Documentation

◆ MetaTile()

MetaTile::MetaTile ( )
inline

Constructor.

Definition at line 38 of file metatile.h.

References A_DELETE_COPY.

38  : Fcost(0), Gcost(0), Hcost(0), whichList(0),
39  parentX(0), parentY(0), blockmask(0)
40  {}
int Gcost
Definition: metatile.h:46
int Fcost
Definition: metatile.h:45
int Hcost
Definition: metatile.h:47
unsigned char blockmask
Definition: metatile.h:51
int parentX
Definition: metatile.h:49
int parentY
Definition: metatile.h:50
unsigned whichList
Definition: metatile.h:48

Field Documentation

◆ blockmask

unsigned char MetaTile::blockmask

Blocking properties of this tile

Definition at line 51 of file metatile.h.

Referenced by Map::addBlockMask(), Map::findPath(), Map::getBlockMask(), Map::setBlockMask(), and Minimap::setMap().

◆ Fcost

int MetaTile::Fcost

Estimation of total path cost

Definition at line 45 of file metatile.h.

Referenced by Map::findPath().

◆ Gcost

int MetaTile::Gcost

Cost from start to this location

Definition at line 46 of file metatile.h.

Referenced by Map::findPath().

◆ Hcost

int MetaTile::Hcost

Estimated cost to goal

Definition at line 47 of file metatile.h.

Referenced by Map::findPath().

◆ parentX

int MetaTile::parentX

X coordinate of parent tile

Definition at line 49 of file metatile.h.

Referenced by Map::findPath().

◆ parentY

int MetaTile::parentY

Y coordinate of parent tile

Definition at line 50 of file metatile.h.

Referenced by Map::findPath().

◆ whichList

unsigned MetaTile::whichList

No list, open list or closed list

Definition at line 48 of file metatile.h.

Referenced by Map::findPath().


The documentation for this struct was generated from the following file: