Minetest 5.10.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

◆ PathCost() [2/2]

PathCost::PathCost ( const PathCost & b)

copy constructor

References updated, valid, value, and y_change.

Member Function Documentation

◆ operator=()

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

assignment operator

References updated, valid, value, and y_change.

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: