C# Class Nez.AI.GOAP.Agent

Agent provides a simple and concise way to use the planner. It is not necessary to use at all since it is just a convenince wrapper around the ActionPlanner making it easier to get plans and store the results.
Mostrar archivo Open project: prime31/Nez

Public Properties

Property Type Description
actions Stack

Protected Properties

Property Type Description
_planner ActionPlanner

Public Methods

Method Description
Agent ( ) : System
getGoalState ( ) : WorldState

the goal state that the agent wants to achieve

getWorldState ( ) : WorldState

current WorldState

hasActionPlan ( ) : bool
plan ( bool debugPlan = false ) : bool

Method Details

Agent() public method

public Agent ( ) : System
return System

getGoalState() abstract public method

the goal state that the agent wants to achieve
abstract public getGoalState ( ) : WorldState
return WorldState

getWorldState() abstract public method

current WorldState
abstract public getWorldState ( ) : WorldState
return WorldState

hasActionPlan() public method

public hasActionPlan ( ) : bool
return bool

plan() public method

public plan ( bool debugPlan = false ) : bool
debugPlan bool
return bool

Property Details

_planner protected_oe property

protected ActionPlanner,Nez.AI.GOAP _planner
return ActionPlanner

actions public_oe property

public Stack actions
return Stack