Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::BaseNode Class Referenceabstract

#include <BaseNode.hpp>

Inheritance diagram for Botcraft::BaseNode:
Botcraft::Node< SimpleBehaviourClient > Botcraft::Node< TDerived > Botcraft::Node< Context > Botcraft::BehaviourTree< SimpleBehaviourClient > Botcraft::BehaviourTree< TDerived > Botcraft::BehaviourTree< Context > Botcraft::Composite< Context > Botcraft::Decorator< Context > Botcraft::Leaf< Context > Botcraft::Selector< Context > Botcraft::Sequence< Context > Botcraft::Inverter< Context > Botcraft::Repeater< Context > Botcraft::Succeeder< Context >

Public Member Functions

 BaseNode (const std::string &name_)
 
virtual ~BaseNode ()
 
virtual BehaviourNodeType GetNodeType () const =0
 
virtual size_t GetNumChildren () const =0
 
virtual const BaseNodeGetChild (const size_t index) const =0
 
std::string GetFullDescriptor () const
 
const std::string & GetName () const
 
std::string GetClassName () const
 

Protected Attributes

const std::string name
 

Detailed Description

Definition at line 15 of file BaseNode.hpp.

Constructor & Destructor Documentation

◆ BaseNode()

Botcraft::BaseNode::BaseNode ( const std::string &  name_)

Definition at line 9 of file BaseNode.cpp.

◆ ~BaseNode()

Botcraft::BaseNode::~BaseNode ( )
virtual

Definition at line 14 of file BaseNode.cpp.

Member Function Documentation

◆ GetChild()

◆ GetClassName()

std::string Botcraft::BaseNode::GetClassName ( ) const

Definition at line 29 of file BaseNode.cpp.

Referenced by GetFullDescriptor(), and Botcraft::Renderer::UnrollTreeStructure().

◆ GetFullDescriptor()

std::string Botcraft::BaseNode::GetFullDescriptor ( ) const

◆ GetName()

const std::string & Botcraft::BaseNode::GetName ( ) const

◆ GetNodeType()

◆ GetNumChildren()

Member Data Documentation

◆ name

const std::string Botcraft::BaseNode::name
protected

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