Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
Node Struct Reference

#include <Utils.hpp>

Collaboration diagram for Node:
Collaboration graph

Public Member Functions

float totalCost ()
 

Public Attributes

std::pair< int, int > coords
 
float costFromStart
 Number of steps from the start. More...
 
float estimatedCostToGoal
 Estimated number of steps to the goal, in our case the euclidean distance. More...
 
std::shared_ptr< Nodeparent = nullptr
 
Direction dirFromParent
 Direction from the parent to this node. More...
 

Member Function Documentation

◆ totalCost()

float Node::totalCost ( )
inline

Member Data Documentation

◆ coords

std::pair<int, int> Node::coords

◆ costFromStart

float Node::costFromStart

Number of steps from the start.

◆ dirFromParent

Direction Node::dirFromParent

Direction from the parent to this node.

◆ estimatedCostToGoal

float Node::estimatedCostToGoal

Estimated number of steps to the goal, in our case the euclidean distance.

◆ parent

std::shared_ptr<Node> Node::parent = nullptr

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