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 34 of file metatile.h.

Constructor & Destructor Documentation

◆ MetaTile()

MetaTile::MetaTile ( )
inline

Constructor.

Definition at line 39 of file metatile.h.

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

Field Documentation

◆ blockmask

unsigned char MetaTile::blockmask

Blocking properties of this tile

Definition at line 52 of file metatile.h.

Referenced by Map::findPath(), Minimap::setMap(), and MapLayer::updateConditionTiles().

◆ Fcost

int MetaTile::Fcost

Estimation of total path cost

Definition at line 46 of file metatile.h.

Referenced by Map::findPath().

◆ Gcost

int MetaTile::Gcost

Cost from start to this location

Definition at line 47 of file metatile.h.

Referenced by Map::findPath().

◆ Hcost

int MetaTile::Hcost

Estimated cost to goal

Definition at line 48 of file metatile.h.

Referenced by Map::findPath().

◆ parentX

int MetaTile::parentX

X coordinate of parent tile

Definition at line 50 of file metatile.h.

Referenced by Map::findPath().

◆ parentY

int MetaTile::parentY

Y coordinate of parent tile

Definition at line 51 of file metatile.h.

Referenced by Map::findPath().

◆ whichList

unsigned MetaTile::whichList

No list, open list or closed list

Definition at line 49 of file metatile.h.

Referenced by Map::findPath().


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