menu

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenURL

func OpenURL(path string) error

Types

type Ballpit

type Ballpit struct {
}

func (*Ballpit) Draw

func (s *Ballpit) Draw(ctx states.DrawContext)

func (*Ballpit) Enter

func (s *Ballpit) Enter(ctx states.Context, v interface{}) error

func (*Ballpit) Finalize

func (s *Ballpit) Finalize(ctx states.Context) error

func (*Ballpit) Init

func (s *Ballpit) Init(ctx states.Context) error

func (*Ballpit) Update

func (s *Ballpit) Update(ctx states.Context) error

type CreditSection

type CreditSection struct {
	Title  resources.MenuItem
	Person resources.MenuItem
	Hat    *resources.Sprite
}

type Credits

type Credits struct {
	// contains filtered or unexported fields
}

func (*Credits) Draw

func (c *Credits) Draw(ctx states.DrawContext)

func (*Credits) Enter

func (c *Credits) Enter(ctx states.Context, v interface{}) error

func (*Credits) Finalize

func (c *Credits) Finalize(ctx states.Context) error

func (*Credits) Init

func (c *Credits) Init(ctx states.Context) error

func (*Credits) Update

func (c *Credits) Update(ctx states.Context) error

type GPTOptions

type GPTOptions struct {
	// contains filtered or unexported fields
}

func (*GPTOptions) Draw

func (s *GPTOptions) Draw(ctx states.DrawContext)

func (*GPTOptions) Enter

func (s *GPTOptions) Enter(ctx states.Context, v interface{}) error

func (*GPTOptions) Finalize

func (s *GPTOptions) Finalize(ctx states.Context) error

func (*GPTOptions) Init

func (s *GPTOptions) Init(ctx states.Context) error

func (*GPTOptions) Update

func (s *GPTOptions) Update(ctx states.Context) error

type HatMessage

type HatMessage struct {
	Hat int
}

func (HatMessage) FromBytes

func (m HatMessage) FromBytes(b []byte) (net.Message, int)

func (HatMessage) Ident

func (m HatMessage) Ident() uint8

func (HatMessage) ToBytes

func (m HatMessage) ToBytes() (b []byte)

type Intro

type Intro struct {
	// contains filtered or unexported fields
}

func (*Intro) Draw

func (i *Intro) Draw(ctx states.DrawContext)

func (*Intro) Enter

func (i *Intro) Enter(ctx states.Context, v interface{}) error

func (*Intro) Finalize

func (i *Intro) Finalize(ctx states.Context) error

func (*Intro) Init

func (i *Intro) Init(ctx states.Context) error

func (*Intro) Update

func (i *Intro) Update(ctx states.Context) error

type Jukebox

type Jukebox struct {
	// contains filtered or unexported fields
}

func (*Jukebox) Draw

func (j *Jukebox) Draw(ctx states.DrawContext)

func (*Jukebox) Enter

func (j *Jukebox) Enter(ctx states.Context, v interface{}) error

func (*Jukebox) Finalize

func (j *Jukebox) Finalize(ctx states.Context) error

func (*Jukebox) Init

func (j *Jukebox) Init(ctx states.Context) error

func (*Jukebox) Update

func (j *Jukebox) Update(ctx states.Context) error

type Loading

type Loading struct {
	// contains filtered or unexported fields
}

func (*Loading) Draw

func (l *Loading) Draw(ctx states.DrawContext)

func (*Loading) Enter

func (l *Loading) Enter(ctx states.Context, v interface{}) error

func (*Loading) Finalize

func (l *Loading) Finalize(ctx states.Context) error

func (*Loading) Init

func (l *Loading) Init(ctx states.Context) error

func (*Loading) Update

func (l *Loading) Update(ctx states.Context) error

type Lobby

type Lobby struct {
	// contains filtered or unexported fields
}

func (*Lobby) AddNetPlayer

func (s *Lobby) AddNetPlayer(ctx states.Context, peer *rnet.Peer)

func (*Lobby) CancelNetworking

func (s *Lobby) CancelNetworking()

func (*Lobby) Draw

func (s *Lobby) Draw(ctx states.DrawContext)

func (*Lobby) Enter

func (s *Lobby) Enter(ctx states.Context, v interface{}) error

func (*Lobby) Finalize

func (s *Lobby) Finalize(ctx states.Context) error

func (*Lobby) GetNetPlayer

func (s *Lobby) GetNetPlayer(peer *rnet.Peer) *PlayerEntry

func (*Lobby) Init

func (s *Lobby) Init(ctx states.Context) error

func (*Lobby) JoinHost

func (s *Lobby) JoinHost(address string) error

func (*Lobby) RemoveNetPlayer

func (s *Lobby) RemoveNetPlayer()

func (*Lobby) SendToNetPlayers

func (s *Lobby) SendToNetPlayers(msg rnet.Message)

func (*Lobby) StartHost

func (s *Lobby) StartHost(address string) error

func (*Lobby) Update

func (s *Lobby) Update(ctx states.Context) error
type Menu struct {
	// contains filtered or unexported fields
}
func (m *Menu) Draw(ctx states.DrawContext)
func (m *Menu) Enter(ctx states.Context, v interface{}) error
func (m *Menu) Finalize(ctx states.Context) error
func (m *Menu) Init(ctx states.Context) error
func (m *Menu) Update(ctx states.Context) error

type PlayerEntry

type PlayerEntry struct {
	// contains filtered or unexported fields
}

PlayerEntry represents the lobby entry for a player.

func (*PlayerEntry) Draw

func (e *PlayerEntry) Draw(ctx states.DrawContext)

func (*PlayerEntry) Init

func (e *PlayerEntry) Init(s *Lobby, ctx states.Context) error

func (*PlayerEntry) SetController

func (e *PlayerEntry) SetController(dir int)

func (*PlayerEntry) SetPlayer

func (e *PlayerEntry) SetPlayer(player game.Player)

func (*PlayerEntry) SyncController

func (e *PlayerEntry) SyncController(ctx states.Context)

func (*PlayerEntry) SyncDifficulty

func (e *PlayerEntry) SyncDifficulty(ctx states.Context, i int)

func (*PlayerEntry) SyncHat

func (e *PlayerEntry) SyncHat(ctx states.Context)

func (*PlayerEntry) Update

func (e *PlayerEntry) Update(ctx states.Context, offsetX float64) error

type PreIntro

type PreIntro struct {
	// contains filtered or unexported fields
}

func (*PreIntro) Draw

func (p *PreIntro) Draw(ctx states.DrawContext)

func (*PreIntro) Enter

func (p *PreIntro) Enter(ctx states.Context, v interface{}) error

func (*PreIntro) Finalize

func (p *PreIntro) Finalize(ctx states.Context) error

func (*PreIntro) Init

func (p *PreIntro) Init(ctx states.Context) error

func (*PreIntro) Update

func (p *PreIntro) Update(ctx states.Context) error

type StartMessage

type StartMessage struct {
}

func (StartMessage) FromBytes

func (m StartMessage) FromBytes(b []byte) (net.Message, int)

func (StartMessage) Ident

func (m StartMessage) Ident() uint8

func (StartMessage) ToBytes

func (m StartMessage) ToBytes() (b []byte)

Jump to

Keyboard shortcuts

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