Documentation
¶
Index ¶
- type PlayController
- func (c *PlayController) IsDrive() bool
- func (c *PlayController) OnKeyboardEvent(event ui.KeyboardEvent) bool
- func (c *PlayController) OnMouseEvent(element *ui.Element, event ui.MouseEvent) bool
- func (c *PlayController) Pause()
- func (c *PlayController) Resume()
- func (c *PlayController) Start(environment data.Lighting, controller data.Input, board *level.Board)
- func (c *PlayController) Stop()
- func (c *PlayController) ToggleCamera()
- func (c *PlayController) Velocity() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayController ¶ added in v0.5.0
type PlayController struct {
// contains filtered or unexported fields
}
func NewPlayController ¶ added in v0.5.0
func (*PlayController) IsDrive ¶ added in v0.5.0
func (c *PlayController) IsDrive() bool
func (*PlayController) OnKeyboardEvent ¶ added in v0.5.0
func (c *PlayController) OnKeyboardEvent(event ui.KeyboardEvent) bool
func (*PlayController) OnMouseEvent ¶ added in v0.5.0
func (c *PlayController) OnMouseEvent(element *ui.Element, event ui.MouseEvent) bool
func (*PlayController) Pause ¶ added in v0.5.0
func (c *PlayController) Pause()
func (*PlayController) Resume ¶ added in v0.5.0
func (c *PlayController) Resume()
func (*PlayController) Stop ¶ added in v0.5.0
func (c *PlayController) Stop()
func (*PlayController) ToggleCamera ¶ added in v0.5.0
func (c *PlayController) ToggleCamera()
func (*PlayController) Velocity ¶ added in v0.5.0
func (c *PlayController) Velocity() float64
Click to show internal directories.
Click to hide internal directories.