Documentation ¶
Index ¶
- func AddEventFilters(filters []rt.BoolEval) (ret []rt.BoolEval)
- func AddKindFilter(kind string, filters []rt.BoolEval) (ret []rt.BoolEval)
- func AddNounFilter(noun string, filters []rt.BoolEval) (ret []rt.BoolEval)
- func AddPlayerFilter(filters []rt.BoolEval) (ret []rt.BoolEval)
- func CanFilterActor(k *rt.Kind) (ret bool)
- func DoesTerminate(exe []rt.Execute) bool
- func DoesUpdate(exe []rt.Execute) (okay bool)
- func FilterHasCounter(filter rt.BoolEval) (okay bool)
- func FindNamedResponse(exe []rt.Execute) (ret string)
- type Prefix
- type RuleInfo
- type RuleName
- type Suffix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventFilters ¶
filter to the innermost target.
func AddPlayerFilter ¶
ensure that the target of an action is the player ( jess apples this filter to actor actions unless specifically asked not to )
func CanFilterActor ¶
func DoesTerminate ¶
tdb: could this? be processed at load time (storyImport)
func DoesUpdate ¶
Check to see if there are counters that might need updating on the regular. tdb: could this be processed at load time (storyImport)
func FilterHasCounter ¶
func FindNamedResponse ¶
return the first response definition in the block
Types ¶
type Prefix ¶
type Prefix int
words preceding a rule name control the grouping, sorting, and interaction of similar rules. ex. "instead of taking" sorts after "before taking" within the "before" grouping. "when" is the default
type RuleInfo ¶
type RuleName ¶
type RuleName struct { Path []string // path of the pattern targeted by this rule Label string // friendly name of the rule itself Prefix Prefix Suffix Suffix ExcludesPlayer bool // true if the rule should apply to all actors }
results of reading author specified pairs of pattern name and rule name. for example ("before someone jumping", "people jump for joy")
func ReadPhrase ¶
pattern name as specified optional rule name as specified ex. Define rule:named:do: ["activating", "the standard activating action" ]
func (RuleName) EventName ¶
instead and report are grouped with before and after respectively fix: can this move to rule info?
func (RuleName) GetRuleInfo ¶
match an author specified pattern reference to various naming conventions and pattern definitions to determine the intended pattern name, rank, and termination behavior. for example: "instead of x", "before x", "after x", "report x".