AlpacaLibary
1.63
A closed source C++ bot for OSRS
|
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... | |
A subclass used to store information about tile nodes generated by the Pathfinding class.
Definition at line 56 of file Pathfinding.hpp.
Pathfinding::TileNode::TileNode | ( | ) |
Pathfinding::TileNode::TileNode | ( | std::int32_t | X, |
std::int32_t | Y, | ||
std::int32_t | Flag | ||
) |
bool Pathfinding::TileNode::IsBlocked | ( | ) | const |
True if the node is occupied or blocked according to its collision flag.
Pathfinding::TileNode::operator bool | ( | ) | const |
bool Pathfinding::TileNode::operator== | ( | const TileNode & | N | ) | const |
Tile Pathfinding::TileNode::ToWorldTile | ( | ) | const |
Adds ClientX/Y to the local X and Y coordinates of the node, returning a world tile
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
std::int32_t Pathfinding::TileNode::Flag |
The collision flag associated with the node.
Definition at line 64 of file Pathfinding.hpp.
bool Pathfinding::TileNode::Inspected = false |
For pathfinding use only
Definition at line 66 of file Pathfinding.hpp.
bool Pathfinding::TileNode::MatchesBlacklist = false |
True if this node matches the blacklisted tiles set in Pathfinding
Definition at line 70 of file Pathfinding.hpp.
bool Pathfinding::TileNode::MatchesWhitelist = false |
True if this node matches the whitelisted tiles set in Pathfinding
Definition at line 68 of file Pathfinding.hpp.
std::int32_t Pathfinding::TileNode::Parent[2] |
For pathfinding use only
Definition at line 72 of file Pathfinding.hpp.
std::int32_t Pathfinding::TileNode::X |
The local region X coordinate.
Definition at line 60 of file Pathfinding.hpp.
std::int32_t Pathfinding::TileNode::Y |
The local region Y coordinate.
Definition at line 62 of file Pathfinding.hpp.