Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::goap::Node Struct Reference

#include <Node.h>

Public Member Functions

 Node () noexcept
 
 Node (const WorldState &state, I32 g, I32 h, I32 parent_id, const Action *action)
 
I32 f () const noexcept
 
string toString () const
 

Public Attributes

WorldState ws_
 
I32 id_
 
I32 parent_id_
 
I32 g_
 
I32 h_
 
const Actionaction_
 

Static Public Attributes

static I32 last_id_ = 0
 

Detailed Description

Definition at line 17 of file Node.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

Node::Node ( )
noexcept

Definition at line 12 of file Node.cpp.

◆ Node() [2/2]

Node::Node ( const WorldState state,
I32  g,
I32  h,
I32  parent_id,
const Action action 
)

Definition at line 17 of file Node.cpp.

Member Function Documentation

◆ f()

I32 Divide::goap::Node::f ( ) const
inlinenoexcept

Definition at line 31 of file Node.h.

◆ toString()

string Node::toString ( ) const

Definition at line 35 of file Node.cpp.

Member Data Documentation

◆ action_

const Action* Divide::goap::Node::action_

Definition at line 25 of file Node.h.

◆ g_

I32 Divide::goap::Node::g_

Definition at line 23 of file Node.h.

◆ h_

I32 Divide::goap::Node::h_

Definition at line 24 of file Node.h.

◆ id_

I32 Divide::goap::Node::id_

Definition at line 21 of file Node.h.

◆ last_id_

I32 Node::last_id_ = 0
static

Definition at line 18 of file Node.h.

◆ parent_id_

I32 Divide::goap::Node::parent_id_

Definition at line 22 of file Node.h.

◆ ws_

WorldState Divide::goap::Node::ws_

Definition at line 20 of file Node.h.


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