Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NavigationMap::PathNode Struct Reference

#include <CollisionMap.h>

+ Collaboration diagram for NavigationMap::PathNode:

Public Member Functions

float fCost () const
 
 PathNode ()
 
 PathNode (int _x, int _y)
 

Public Attributes

int x
 
int y
 
float gCost
 
float hCost
 
PathNodeparent
 

Detailed Description

Definition at line 229 of file CollisionMap.h.

Constructor & Destructor Documentation

◆ PathNode() [1/2]

NavigationMap::PathNode::PathNode ( )
inline

Definition at line 237 of file CollisionMap.h.

◆ PathNode() [2/2]

NavigationMap::PathNode::PathNode ( int  _x,
int  _y 
)
inline

Definition at line 238 of file CollisionMap.h.

Member Function Documentation

◆ fCost()

float NavigationMap::PathNode::fCost ( ) const
inline

Definition at line 234 of file CollisionMap.h.

References gCost, and hCost.

Referenced by NavigationMap::FindPath().

+ Here is the caller graph for this function:

Member Data Documentation

◆ gCost

float NavigationMap::PathNode::gCost

Definition at line 232 of file CollisionMap.h.

Referenced by fCost().

◆ hCost

float NavigationMap::PathNode::hCost

Definition at line 233 of file CollisionMap.h.

Referenced by fCost().

◆ parent

PathNode* NavigationMap::PathNode::parent

Definition at line 235 of file CollisionMap.h.

Referenced by NavigationMap::FindPath().

◆ x

int NavigationMap::PathNode::x

Definition at line 231 of file CollisionMap.h.

◆ y

int NavigationMap::PathNode::y

Definition at line 231 of file CollisionMap.h.


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