Documentation
¶
Index ¶
- Constants
- func ContainingArea(atom types.Value) types.Value
- func MobSetClient(mobV types.Value, client types.Value)
- func NewAreaData(src *types.Datum, _ *AreaData, _ ...types.Value)
- func NewAtomData(src *types.Datum, data *AtomData, args ...types.Value)
- func NewAtomMovableData(src *types.Datum, _ *AtomMovableData, _ ...types.Value)
- func NewMobData(src *types.Datum, _ *MobData, _ ...types.Value)
- func NewObjData(src *types.Datum, _ *ObjData, _ ...types.Value)
- func NewTurfData(src *types.Datum, _ *TurfData, _ ...types.Value)
- func SetWalkState(src types.Value, ws WalkState)
- func TurfsInArea(area types.Value) (turfs []types.Value)
- type Appearance
- func (a Appearance) Invoke(usr *types.Datum, name string, parameters ...types.Value) types.Value
- func (a Appearance) SetVar(name string, value types.Value)
- func (a Appearance) String() string
- func (a Appearance) ToSprite(x, y uint, dir common.Direction) (bool, int, sprite.GameSprite)
- func (a Appearance) Var(name string) types.Value
- type AreaData
- type AtomData
- func (d *AtomData) GetContents(src *types.Datum) types.Value
- func (d *AtomData) GetDesc(src *types.Datum) types.Value
- func (d *AtomData) GetDir(src *types.Datum) types.Value
- func (d *AtomData) GetIcon(src *types.Datum) types.Value
- func (d *AtomData) GetIconState(src *types.Datum) types.Value
- func (d *AtomData) GetLayer(src *types.Datum) types.Value
- func (d *AtomData) GetLoc(src *types.Datum) types.Value
- func (d *AtomData) GetName(src *types.Datum) types.Value
- func (d *AtomData) GetSuffix(src *types.Datum) types.Value
- func (d *AtomData) GetX(src *types.Datum) types.Value
- func (d *AtomData) GetY(src *types.Datum) types.Value
- func (d *AtomData) GetZ(src *types.Datum) types.Value
- func (d *AtomData) ProcBump(src *types.Datum, usr *types.Datum, obstacle types.Value) types.Value
- func (d *AtomData) ProcEnter(src *types.Datum, usr *types.Datum, atom types.Value, oldloc types.Value) types.Value
- func (d *AtomData) ProcEntered(src *types.Datum, usr *types.Datum, atom types.Value, oldloc types.Value) types.Value
- func (d *AtomData) ProcExit(src *types.Datum, usr *types.Datum, atom types.Value, newloc types.Value) types.Value
- func (d *AtomData) ProcExited(src *types.Datum, usr *types.Datum, atom types.Value, newloc types.Value) types.Value
- func (d *AtomData) ProcMove(src *types.Datum, usr *types.Datum, newloc types.Value, direction types.Value) types.Value
- func (d *AtomData) ProcStat(src *types.Datum, usr *types.Datum) types.Value
- func (d *AtomData) SetDesc(src *types.Datum, value types.Value)
- func (d *AtomData) SetDir(src *types.Datum, value types.Value)
- func (d *AtomData) SetIcon(src *types.Datum, value types.Value)
- func (d *AtomData) SetIconState(src *types.Datum, value types.Value)
- func (d *AtomData) SetLayer(src *types.Datum, value types.Value)
- func (d *AtomData) SetLoc(src *types.Datum, location types.Value)
- func (d *AtomData) SetName(src *types.Datum, value types.Value)
- func (d *AtomData) SetSuffix(src *types.Datum, value types.Value)
- type AtomMovableData
- type MobData
- func (m *MobData) EndStatContext() sprite.StatDisplay
- func (m *MobData) GetClient(src *types.Datum) types.Value
- func (m *MobData) GetKey(src *types.Datum) types.Value
- func (m *MobData) OperatorWrite(src *types.Datum, usr *types.Datum, output types.Value) types.Value
- func (m *MobData) ProcLogin(src *types.Datum, usr *types.Datum) types.Value
- func (m *MobData) StartStatContext(src *types.Datum)
- func (m *MobData) StatContext() *StatContext
- type ObjData
- type StatContext
- type TurfData
- func (t *TurfData) GetX(src *types.Datum) types.Value
- func (t *TurfData) GetY(src *types.Datum) types.Value
- func (t *TurfData) GetZ(src *types.Datum) types.Value
- func (t *TurfData) ProcEnter(src *types.Datum, usr *types.Datum, atom types.Value, oldloc types.Value) types.Value
- func (t *TurfData) ProcEntered(src *types.Datum, usr *types.Datum, atom types.Value, oldloc types.Value) types.Value
- func (t *TurfData) ProcExit(src *types.Datum, usr *types.Datum, atom types.Value, newloc types.Value) types.Value
- func (t *TurfData) ProcExited(src *types.Datum, usr *types.Datum, atom types.Value, newloc types.Value) types.Value
- func (t *TurfData) SetX(src *types.Datum, x types.Value)
- func (t *TurfData) SetY(src *types.Datum, y types.Value)
- func (t *TurfData) SetZ(src *types.Datum, z types.Value)
- type Verb
- func (v Verb) Apply(src *types.Datum, usr *types.Datum, args []types.Value)
- func (v Verb) Invoke(usr *types.Datum, name string, parameters ...types.Value) types.Value
- func (v Verb) Matches(name string, src *types.Datum, usr *types.Datum, args []string) bool
- func (v Verb) ResolveArgs(src *types.Datum, usr *types.Datum, args []string) ([]types.Value, error)
- func (v Verb) SetVar(name string, value types.Value)
- func (v Verb) String() string
- func (v Verb) Var(name string) types.Value
- type ViewMode
- type WalkState
- type World
Constants ¶
View Source
const ( AreaLayer = 1 TurfLayer = 2 ObjLayer = 3 MobLayer = 4 )
Variables ¶
This section is empty.
Functions ¶
func NewAtomMovableData ¶
func NewAtomMovableData(src *types.Datum, _ *AtomMovableData, _ ...types.Value)
func SetWalkState ¶
not for general use; just for pathfinding system
Types ¶
type Appearance ¶
type Appearance struct { Icon *icon.Icon IconState string Layer int Name string Desc string Suffix string }
func (Appearance) String ¶
func (a Appearance) String() string
func (Appearance) ToSprite ¶
func (a Appearance) ToSprite(x, y uint, dir common.Direction) (bool, int, sprite.GameSprite)
type AtomData ¶
type AtomData struct { VarAppearance Appearance VarDensity int VarOpacity int VarVerbs []Verb // contains filtered or unexported fields }
func (*AtomData) ProcEntered ¶
func (*AtomData) ProcExited ¶
func (*AtomData) SetIconState ¶
type AtomMovableData ¶
type AtomMovableData struct {
// contains filtered or unexported fields
}
func AtomMovableDataChunk ¶
func AtomMovableDataChunk(v types.Value) (*AtomMovableData, bool)
type MobData ¶
type MobData struct {
// contains filtered or unexported fields
}
func (*MobData) EndStatContext ¶
func (m *MobData) EndStatContext() sprite.StatDisplay
func (*MobData) OperatorWrite ¶
func (*MobData) StartStatContext ¶
func (*MobData) StatContext ¶
func (m *MobData) StatContext() *StatContext
type StatContext ¶
type StatContext struct {
// contains filtered or unexported fields
}
func (*StatContext) Display ¶
func (s *StatContext) Display() sprite.StatDisplay
func (*StatContext) StatPanel ¶
func (s *StatContext) StatPanel(panel string) bool
type TurfData ¶
func (*TurfData) ProcEntered ¶
func (*TurfData) ProcExited ¶
type Verb ¶
NOTE: although verbs have a "defining type", which can be inspected, all that ultimately matters is the procedure name, because that is what actually gets called when the verb is invoked.
func (Verb) ResolveArgs ¶
type WalkState ¶
func GetWalkState ¶
not for general use; just for pathfinding system
type World ¶
type World interface { PlayerExists(client types.Value) bool MaxXYZ() (uint, uint, uint) SetMaxXYZ(x, y, z uint) LocateXYZ(x, y, z uint) (turf types.Value) Realm() *types.Realm Icon(name string) *icon.Icon FindAll(predicate func(*types.Datum) bool) []types.Value FindAllType(tp types.TypePath) []types.Value FindOne(predicate func(*types.Datum) bool) types.Value FindOneType(tp types.TypePath) types.Value View(distance uint, centerD *types.Datum, mode ViewMode) []types.Value View1(centerD *types.Datum, mode ViewMode) []types.Value ListVerbsOnAtom(client types.Value, atom *types.Datum) (verbs []string) Flick(icon *icon.Icon, icon_state string, target types.Value) }
Click to show internal directories.
Click to hide internal directories.