scripttest

package
v0.0.0-...-7551c24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	T   testing.TB
	Log bytes.Buffer
}

func (*Game) AudioEffect

func (g *Game) AudioEffect(name string, pos script.Positioner)

func (*Game) BlindPlayers

func (g *Game) BlindPlayers(blind bool)

func (*Game) CinemaPlayers

func (g *Game) CinemaPlayers(v bool)

func (*Game) Console

func (g *Game) Console(error bool) script.Printer

func (*Game) Frame

func (g *Game) Frame() int

func (*Game) Global

func (g *Game) Global() script.Printer

func (*Game) HostPlayer

func (g *Game) HostPlayer() script.Player

func (*Game) ObjectByID

func (g *Game) ObjectByID(id string) script.Object

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 (g *Game) OnPlayerJoin(fnc func(p script.Player))

func (*Game) OnPlayerLeave

func (g *Game) OnPlayerLeave(fnc func(p script.Player))

func (*Game) Players

func (g *Game) Players() []script.Player

func (*Game) Time

func (g *Game) Time() time.Duration

func (*Game) WallAt

func (g *Game) WallAt(pos types.Pointf) script.Wall

func (*Game) WallAtGrid

func (g *Game) WallAtGrid(pos image.Point) script.Wall

func (*Game) WallByPos

func (g *Game) WallByPos(pos image.Point) script.Wall

func (*Game) WallGroupByID

func (g *Game) WallGroupByID(id string) *script.WallGroup

func (*Game) WallNear

func (g *Game) WallNear(pos types.Pointf) script.Wall

func (*Game) WaypointByID

func (g *Game) WaypointByID(id string) script.Waypoint

func (*Game) WaypointGroupByID

func (g *Game) WaypointGroupByID(id string) *script.WaypointGroup

type Object

type Object struct {
	SID    int
	IDVal  string
	PosVal types.Pointf
}

func (*Object) Class

func (v *Object) Class() object.Class

func (*Object) Delete

func (v *Object) Delete()

func (*Object) Destroy

func (v *Object) Destroy()

func (*Object) Enable

func (v *Object) Enable(val bool)

func (*Object) GetObject

func (v *Object) GetObject() script.Object

func (*Object) ID

func (v *Object) ID() string

func (*Object) IsEnabled

func (v *Object) IsEnabled() bool

func (*Object) ObjScriptID

func (v *Object) ObjScriptID() int

func (*Object) ObjectType

func (v *Object) ObjectType() script.ObjectType

func (*Object) OnTriggerActivate

func (v *Object) OnTriggerActivate(fnc func(obj script.Object))

func (*Object) OnTriggerDeactivate

func (v *Object) OnTriggerDeactivate(fnc func())

func (*Object) Owner

func (v *Object) Owner() script.Object

func (*Object) Pos

func (v *Object) Pos() types.Pointf

func (*Object) Push

func (v *Object) Push(vec types.Pointf, force float32)

func (*Object) PushTo

func (v *Object) PushTo(p types.Pointf)

func (*Object) ScriptID

func (v *Object) ScriptID() int

func (*Object) SetOwner

func (v *Object) SetOwner(owner script.ObjectWrapper)

func (*Object) SetPos

func (v *Object) SetPos(p types.Pointf)

func (*Object) SetZ

func (v *Object) SetZ(z float32)

func (*Object) String

func (v *Object) String() string

func (*Object) Type

func (v *Object) Type() script.ObjectType

func (*Object) Z

func (v *Object) Z() float32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL