Documentation ¶
Index ¶
- type DeleteStateInput
- func (i *DeleteStateInput) Click(v *View, _ internal.Vector)
- func (i *DeleteStateInput) Contains(xy internal.Vector) bool
- func (i *DeleteStateInput) Draw(v *View, ctx *draw.Context)
- func (DeleteStateInput) Enabled(v *View) bool
- func (i *DeleteStateInput) Update(world internal.BoundingBox) internal.Vector
- type Deleter
- type EntityPlacer
- type EntitySpawner
- type Input
- type InputController
- type MouseHandler
- type PlayStateInput
- type VelocityModifier
- type View
- func (v *View) Bind(el js.Value)
- func (v *View) Camera() *draw.Camera
- func (v *View) CollisionResolver() universe.CollisionResolver
- func (v *View) Draw(ctx *draw.Context)
- func (v *View) Entities() *universe.EntityList
- func (v *View) SetCursor(cursor string)
- func (v *View) TimeScale() float64
- func (v *View) Update(world internal.BoundingBox)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteStateInput ¶
type DeleteStateInput struct {
// contains filtered or unexported fields
}
func (DeleteStateInput) Enabled ¶
func (DeleteStateInput) Enabled(v *View) bool
type EntityPlacer ¶
type EntityPlacer func(box internal.BoundingBox) []*universe.Entity
type EntitySpawner ¶
type EntitySpawner struct {
// contains filtered or unexported fields
}
type InputController ¶
type InputController struct {
// contains filtered or unexported fields
}
func NewInputController ¶
func NewInputController(world internal.BoundingBox, inputs ...Input) *InputController
func (*InputController) Update ¶
func (i *InputController) Update(world internal.BoundingBox)
type MouseHandler ¶
type PlayStateInput ¶
type PlayStateInput struct {
// contains filtered or unexported fields
}
func (PlayStateInput) Enabled ¶
func (PlayStateInput) Enabled(_ *View) bool
type VelocityModifier ¶
type VelocityModifier struct {
// contains filtered or unexported fields
}
type View ¶
type View struct {
// contains filtered or unexported fields
}
func New ¶
func New(initial internal.BoundingBox, collisionResolver universe.CollisionResolver) *View
func (*View) CollisionResolver ¶
func (v *View) CollisionResolver() universe.CollisionResolver
func (*View) Entities ¶
func (v *View) Entities() *universe.EntityList
func (*View) Update ¶
func (v *View) Update(world internal.BoundingBox)
Click to show internal directories.
Click to hide internal directories.