Property | Type | Description | |
---|---|---|---|
cost | int | ||
name | string |
Method | Description | |
---|---|---|
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.
|
public Action ( string name, int cost ) : System | ||
name | string | |
cost | int | |
return | System |
public setPostcondition ( string conditionName, bool value ) : void | ||
conditionName | string | |
value | bool | |
return | void |
public setPrecondition ( string conditionName, bool value ) : void | ||
conditionName | string | |
value | bool | |
return | void |