AlpacaLibary  1.63
A closed source C++ bot for OSRS
Pathfinding::TileNode Class Reference

A subclass used to store information about tile nodes generated by the Pathfinding class. More...

#include <Pathfinding.hpp>

Public Member Functions

 TileNode ()
 
 TileNode (std::int32_t X, std::int32_t Y, std::int32_t Flag)
 
bool IsBlocked () const
 True if the node is occupied or blocked according to its collision flag. More...
 
Tile ToWorldTile () const
 Adds ClientX/Y to the local X and Y coordinates of the node, returning a world tile
More...
 
Tile ToWorldTile (std::int32_t ClientX, std::int32_t ClientY, std::int32_t ClientPlane) const
 Adds ClientX/Y to the local X and Y coordinates of the node, returning a world tile
More...
 
bool operator== (const TileNode &N) const
 
 operator bool () const
 

Public Attributes

std::int32_t X
 The local region X coordinate. More...
 
std::int32_t Y
 The local region Y coordinate. More...
 
std::int32_t Flag
 The collision flag associated with the node. More...
 
bool Inspected = false
  For pathfinding use only More...
 
bool MatchesWhitelist = false
 True if this node matches the whitelisted tiles set in Pathfinding
More...
 
bool MatchesBlacklist = false
 True if this node matches the blacklisted tiles set in Pathfinding
More...
 
std::int32_t Parent [2]
  For pathfinding use only
More...
 

Detailed Description

A subclass used to store information about tile nodes generated by the Pathfinding class.

Definition at line 56 of file Pathfinding.hpp.

Constructor & Destructor Documentation

◆ TileNode() [1/2]

Pathfinding::TileNode::TileNode ( )

◆ TileNode() [2/2]

Pathfinding::TileNode::TileNode ( std::int32_t  X,
std::int32_t  Y,
std::int32_t  Flag 
)

Member Function Documentation

◆ IsBlocked()

bool Pathfinding::TileNode::IsBlocked ( ) const

True if the node is occupied or blocked according to its collision flag.

◆ operator bool()

Pathfinding::TileNode::operator bool ( ) const

◆ operator==()

bool Pathfinding::TileNode::operator== ( const TileNode N) const

◆ ToWorldTile() [1/2]

Tile Pathfinding::TileNode::ToWorldTile ( ) const

Adds ClientX/Y to the local X and Y coordinates of the node, returning a world tile

◆ ToWorldTile() [2/2]

Tile Pathfinding::TileNode::ToWorldTile ( std::int32_t  ClientX,
std::int32_t  ClientY,
std::int32_t  ClientPlane 
) const

Adds ClientX/Y to the local X and Y coordinates of the node, returning a world tile

Member Data Documentation

◆ Flag

std::int32_t Pathfinding::TileNode::Flag

The collision flag associated with the node.

Definition at line 64 of file Pathfinding.hpp.

◆ Inspected

bool Pathfinding::TileNode::Inspected = false

For pathfinding use only

Definition at line 66 of file Pathfinding.hpp.

◆ MatchesBlacklist

bool Pathfinding::TileNode::MatchesBlacklist = false

True if this node matches the blacklisted tiles set in Pathfinding

Definition at line 70 of file Pathfinding.hpp.

◆ MatchesWhitelist

bool Pathfinding::TileNode::MatchesWhitelist = false

True if this node matches the whitelisted tiles set in Pathfinding

Definition at line 68 of file Pathfinding.hpp.

◆ Parent

std::int32_t Pathfinding::TileNode::Parent[2]

For pathfinding use only

Definition at line 72 of file Pathfinding.hpp.

◆ X

std::int32_t Pathfinding::TileNode::X

The local region X coordinate.

Definition at line 60 of file Pathfinding.hpp.

◆ Y

std::int32_t Pathfinding::TileNode::Y

The local region Y coordinate.

Definition at line 62 of file Pathfinding.hpp.


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