Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Noun ¶
type Noun struct {
// contains filtered or unexported fields
}
these are created by the survey
func (*Noun) HasAttribute ¶
does the noun have the passed trait?
type Playtime ¶
Playtime - adapts the qna.Runner rt.Runtime to the parser this is VERY rudimentary.
func NewPlaytime ¶
type Survey ¶
type Survey struct {
// contains filtered or unexported fields
}
the survey creates bounds: areas of the world containing sets of nouns.
func MakeDefaultSurveyor ¶
func MakeSurveyor ¶
todo: the "patter" refers to bounds for the player ideally all of the bounds functions would be in script and neither "player" nor "relation" would live here.
func (*Survey) GetBounds ¶
fix: PlayerBounds, PlayerLocale and ObjectBounds might be better delegated to scripts. it would use the same bits as "locationBounded", only all the bounds requests would use it. the scripts would switch on the passed string similar to this -- ( one string and assume that the parser always refers to whatever actor in the global player variable ) that would probably narrow the dependency on rt -- maybe just to a "call" that could be configured with rt externally. ( the "Scope" command could request the named pattern to ensure it exists. )
func (*Survey) GetFocalObject ¶
return the id of the focal object; returns nil on error; ex. self