Documentation ¶
Index ¶
- type Game
- func (g Game) AudioEffect(name string, pos script.Positioner)
- func (g Game) BlindPlayers(blind bool)
- func (g Game) CinemaPlayers(v bool)
- func (g Game) Console(error bool) script.Printer
- func (g Game) Frame() int
- func (g Game) Global() script.Printer
- func (g Game) HostPlayer() script.Player
- func (g Game) ObjectByID(id string) script.Object
- func (g Game) ObjectGroupByID(id string) *script.ObjectGroup
- func (g Game) ObjectTypeByID(id string) script.ObjectType
- func (g Game) OnPlayerJoin(fnc func(p script.Player))
- func (g Game) OnPlayerLeave(fnc func(p script.Player))
- func (g Game) Players() []script.Player
- func (g Game) Time() time.Duration
- func (g Game) WallAt(pos types.Pointf) script.Wall
- func (g Game) WallAtGrid(pos image.Point) script.Wall
- func (g Game) WallByPos(pos image.Point) script.Wall
- func (g Game) WallGroupByID(id string) *script.WallGroup
- func (g Game) WallNear(pos types.Pointf) script.Wall
- func (g Game) WaypointByID(id string) script.Waypoint
- func (g Game) WaypointGroupByID(id string) *script.WaypointGroup
- type Object
- func (v *Object) Class() object.Class
- func (v *Object) Delete()
- func (v *Object) Destroy()
- func (v *Object) Enable(val bool)
- func (v *Object) GetObject() script.Object
- func (v *Object) ID() string
- func (v *Object) IsEnabled() bool
- func (v *Object) ObjScriptID() int
- func (v *Object) ObjectType() script.ObjectType
- func (v *Object) OnTriggerActivate(fnc func(obj script.Object))
- func (v *Object) OnTriggerDeactivate(fnc func())
- func (v *Object) Owner() script.Object
- func (v *Object) Pos() types.Pointf
- func (v *Object) Push(vec types.Pointf, force float32)
- func (v *Object) PushTo(p types.Pointf)
- func (v *Object) ScriptID() int
- func (v *Object) SetOwner(owner script.ObjectWrapper)
- func (v *Object) SetPos(p types.Pointf)
- func (v *Object) SetZ(z float32)
- func (v *Object) String() string
- func (v *Object) Type() script.ObjectType
- func (v *Object) Z() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
func (Game) AudioEffect ¶
func (g Game) AudioEffect(name string, pos script.Positioner)
func (Game) BlindPlayers ¶
func (Game) CinemaPlayers ¶
func (Game) HostPlayer ¶
func (Game) ObjectGroupByID ¶
func (g Game) ObjectGroupByID(id string) *script.ObjectGroup
func (Game) ObjectTypeByID ¶
func (g Game) ObjectTypeByID(id string) script.ObjectType
func (Game) OnPlayerJoin ¶
func (Game) OnPlayerLeave ¶
func (Game) WaypointGroupByID ¶
func (g Game) WaypointGroupByID(id string) *script.WaypointGroup
type Object ¶
func (*Object) ObjScriptID ¶
func (*Object) ObjectType ¶
func (v *Object) ObjectType() script.ObjectType
func (*Object) OnTriggerActivate ¶
func (*Object) OnTriggerDeactivate ¶
func (v *Object) OnTriggerDeactivate(fnc func())
func (*Object) SetOwner ¶
func (v *Object) SetOwner(owner script.ObjectWrapper)
func (*Object) Type ¶
func (v *Object) Type() script.ObjectType
Click to show internal directories.
Click to hide internal directories.