C# Класс Nez.AI.GOAP.ActionPlanner

GOAP based on https://github.com/stolk/GPGOAP
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
conditionNames string[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
applyPostConditions ( ActionPlanner ap, int actionnr, WorldState fr ) : WorldState
findActionIndex ( Action action ) : int
findConditionNameIndex ( string conditionName ) : int
getPossibleTransitions ( WorldState fr ) : List

Описание методов

ActionPlanner() публичный Метод

public ActionPlanner ( ) : System.Text
Результат System.Text

addAction() публичный Метод

public addAction ( Action action ) : void
action Action
Результат void

createWorldState() публичный Метод

convenince method for fetching a WorldState object
public createWorldState ( ) : WorldState
Результат WorldState

describe() публичный Метод

Describe the action planner by listing all actions with pre and post conditions. For debugging purpose.
public describe ( ) : string
Результат string

plan() публичный Метод

public plan ( WorldState startState, WorldState goalState, List selectedNodes = null ) : Stack
startState WorldState
goalState WorldState
selectedNodes List
Результат Stack

Описание свойств

conditionNames публичное свойство

Names associated with all world state atoms
public string[] conditionNames
Результат string[]