Luanti 5.16.0-dev
Loading...
Searching...
No Matches
PathCost Class Reference

representation of cost in specific direction More...

Public Member Functions

 PathCost ()=default
 default constructor
 PathCost (const PathCost &b)
 copy constructor
PathCostoperator= (const PathCost &b)
 assignment operator

Public Attributes

bool valid = false
 movement is possible
int value = 0
 cost of movement
int y_change = 0
 change of y position of movement
bool updated = false
 this cost has ben calculated

Detailed Description

representation of cost in specific direction

Constructor & Destructor Documentation

◆ PathCost() [1/2]

PathCost::PathCost ( )
default

default constructor

References PathCost().

Referenced by PathCost(), PathCost(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PathCost() [2/2]

PathCost::PathCost ( const PathCost & b)

copy constructor

References PathCost(), updated, valid, value, and y_change.

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

PathCost & PathCost::operator= ( const PathCost & b)

assignment operator

References PathCost(), updated, valid, value, and y_change.

Here is the call graph for this function:

Member Data Documentation

◆ updated

bool PathCost::updated = false

this cost has ben calculated

Referenced by PathCost(), Pathfinder::calcCost(), operator=(), and Pathfinder::updateCostHeuristic().

◆ valid

bool PathCost::valid = false

◆ value

int PathCost::value = 0

◆ y_change

int PathCost::y_change = 0

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