C# 클래스 Nez.AI.GOAP.Action

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
cost int
name string

공개 메소드들

메소드 설명
Action ( ) : System
Action ( string name ) : System
Action ( string name, int cost ) : System
ToString ( ) : string
setPostcondition ( string conditionName, bool value ) : void
setPrecondition ( string conditionName, bool value ) : void
validate ( ) : bool

called before the Planner does its planning. Gives the Action an opportunity to set its score or to opt out if it isnt of use. For example, if the Action is to pick up a gun but there are no guns in the world returning false would keep the Action from being considered by the ActionPlanner.

메소드 상세

Action() 공개 메소드

public Action ( ) : System
리턴 System

Action() 공개 메소드

public Action ( string name ) : System
name string
리턴 System

Action() 공개 메소드

public Action ( string name, int cost ) : System
name string
cost int
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

setPostcondition() 공개 메소드

public setPostcondition ( string conditionName, bool value ) : void
conditionName string
value bool
리턴 void

setPrecondition() 공개 메소드

public setPrecondition ( string conditionName, bool value ) : void
conditionName string
value bool
리턴 void

validate() 공개 메소드

called before the Planner does its planning. Gives the Action an opportunity to set its score or to opt out if it isnt of use. For example, if the Action is to pick up a gun but there are no guns in the world returning false would keep the Action from being considered by the ActionPlanner.
public validate ( ) : bool
리턴 bool

프로퍼티 상세

cost 공개적으로 프로퍼티

The cost of performing the action. Figure out a weight that suits the action. Changing it will affect what actions are chosen during planning
public int cost
리턴 int

name 공개적으로 프로퍼티

optional name for the Action. Used for debugging purposes
public string name
리턴 string