C# Class Nez.AI.GOAP.ActionPlanner

GOAP based on https://github.com/stolk/GPGOAP
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
conditionNames string[]

Méthodes publiques

Méthode Description
ActionPlanner ( ) : System.Text
addAction ( Action action ) : void
createWorldState ( ) : WorldState

convenince method for fetching a WorldState object

describe ( ) : string

Describe the action planner by listing all actions with pre and post conditions. For debugging purpose.

plan ( WorldState startState, WorldState goalState, List selectedNodes = null ) : Stack

Private Methods

Méthode Description
applyPostConditions ( ActionPlanner ap, int actionnr, WorldState fr ) : WorldState
findActionIndex ( Action action ) : int
findConditionNameIndex ( string conditionName ) : int
getPossibleTransitions ( WorldState fr ) : List

Method Details

ActionPlanner() public méthode

public ActionPlanner ( ) : System.Text
Résultat System.Text

addAction() public méthode

public addAction ( Action action ) : void
action Action
Résultat void

createWorldState() public méthode

convenince method for fetching a WorldState object
public createWorldState ( ) : WorldState
Résultat WorldState

describe() public méthode

Describe the action planner by listing all actions with pre and post conditions. For debugging purpose.
public describe ( ) : string
Résultat string

plan() public méthode

public plan ( WorldState startState, WorldState goalState, List selectedNodes = null ) : Stack
startState WorldState
goalState WorldState
selectedNodes List
Résultat Stack

Property Details

conditionNames public_oe property

Names associated with all world state atoms
public string[] conditionNames
Résultat string[]