Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Renderer::TreePosNode Struct Reference

Public Member Functions

 TreePosNode (ImNode *real_node_, TreePosNode *parent_=nullptr, int depth_=0, int sibling_order_number_=1)
 
bool IsLeaf () const
 
TreePosNodeNextLeft () const
 
TreePosNodeNextRight () const
 
TreePosNodeLeftBrother () const
 
bool IsLeftmostSibling () const
 
TreePosNodeGetLeftMostSibling () const
 

Public Attributes

float prelim
 
int depth
 
ImNodereal_node
 
TreePosNodeancestor
 
std::vector< std::unique_ptr< TreePosNode > > children
 
TreePosNodeparent
 
TreePosNodethread
 
float mod
 
float change
 
float shift
 
int number
 

Detailed Description

Definition at line 670 of file BehaviourRenderer.cpp.

Constructor & Destructor Documentation

◆ TreePosNode()

Botcraft::Renderer::TreePosNode::TreePosNode ( ImNode real_node_,
TreePosNode parent_ = nullptr,
int  depth_ = 0,
int  sibling_order_number_ = 1 
)
inline

Member Function Documentation

◆ GetLeftMostSibling()

TreePosNode * Botcraft::Renderer::TreePosNode::GetLeftMostSibling ( ) const
inline

Definition at line 737 of file BehaviourRenderer.cpp.

References children, and parent.

Referenced by Botcraft::Renderer::Apportion().

◆ IsLeaf()

bool Botcraft::Renderer::TreePosNode::IsLeaf ( ) const
inline

Definition at line 696 of file BehaviourRenderer.cpp.

References children.

Referenced by Botcraft::Renderer::FirstWalk(), NextLeft(), and NextRight().

◆ IsLeftmostSibling()

bool Botcraft::Renderer::TreePosNode::IsLeftmostSibling ( ) const
inline

Definition at line 728 of file BehaviourRenderer.cpp.

References children, and parent.

Referenced by Botcraft::Renderer::FirstWalk().

◆ LeftBrother()

TreePosNode * Botcraft::Renderer::TreePosNode::LeftBrother ( ) const
inline

Definition at line 711 of file BehaviourRenderer.cpp.

References children, and parent.

Referenced by Botcraft::Renderer::Apportion(), and Botcraft::Renderer::FirstWalk().

◆ NextLeft()

TreePosNode * Botcraft::Renderer::TreePosNode::NextLeft ( ) const
inline

Definition at line 701 of file BehaviourRenderer.cpp.

References children, IsLeaf(), and thread.

Referenced by Botcraft::Renderer::Apportion().

◆ NextRight()

TreePosNode * Botcraft::Renderer::TreePosNode::NextRight ( ) const
inline

Definition at line 706 of file BehaviourRenderer.cpp.

References children, IsLeaf(), and thread.

Referenced by Botcraft::Renderer::Apportion().

Member Data Documentation

◆ ancestor

TreePosNode* Botcraft::Renderer::TreePosNode::ancestor

◆ change

float Botcraft::Renderer::TreePosNode::change

◆ children

◆ depth

int Botcraft::Renderer::TreePosNode::depth

◆ mod

◆ number

int Botcraft::Renderer::TreePosNode::number

Definition at line 756 of file BehaviourRenderer.cpp.

Referenced by Botcraft::Renderer::MoveSubtree(), and TreePosNode().

◆ parent

TreePosNode* Botcraft::Renderer::TreePosNode::parent

◆ prelim

◆ real_node

◆ shift

float Botcraft::Renderer::TreePosNode::shift

◆ thread

TreePosNode* Botcraft::Renderer::TreePosNode::thread

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