dance

package
v0.0.0-...-491ee29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubControl

func NewSubControl() *subControl

Types

type Controller

type Controller interface {
	SetBeatMap(beatMap *beatmap.BeatMap)
	InitCursors()
	Update(time float64, delta float64)
	GetCursors() []*graphics.Cursor
}

func NewGenericController

func NewGenericController() Controller

func NewPlayerController

func NewPlayerController() Controller

func NewReplayController

func NewReplayController() Controller

type GenericController

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

func (*GenericController) GetCursors

func (controller *GenericController) GetCursors() []*graphics.Cursor

func (*GenericController) InitCursors

func (controller *GenericController) InitCursors()

func (*GenericController) SetBeatMap

func (controller *GenericController) SetBeatMap(beatMap *beatmap.BeatMap)

func (*GenericController) Update

func (controller *GenericController) Update(time float64, delta float64)

type PlayerController

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

func (*PlayerController) GetCursors

func (controller *PlayerController) GetCursors() []*graphics.Cursor

func (*PlayerController) GetRuleset

func (controller *PlayerController) GetRuleset() *osu.OsuRuleSet

func (*PlayerController) InitCursors

func (controller *PlayerController) InitCursors()

func (*PlayerController) KeyEvent

func (controller *PlayerController) KeyEvent(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, _ glfw.ModifierKey)

func (*PlayerController) SetBeatMap

func (controller *PlayerController) SetBeatMap(beatMap *beatmap.BeatMap)

func (*PlayerController) Update

func (controller *PlayerController) Update(time float64, delta float64)

type ReplayController

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

func (*ReplayController) GetBeatMap

func (controller *ReplayController) GetBeatMap() *beatmap.BeatMap

func (*ReplayController) GetClick

func (controller *ReplayController) GetClick(player, key int) bool

func (*ReplayController) GetCursors

func (controller *ReplayController) GetCursors() []*graphics.Cursor

func (*ReplayController) GetReplays

func (controller *ReplayController) GetReplays() []RpData

func (*ReplayController) GetRuleset

func (controller *ReplayController) GetRuleset() *osu.OsuRuleSet

func (*ReplayController) InitCursors

func (controller *ReplayController) InitCursors()

func (*ReplayController) SetBeatMap

func (controller *ReplayController) SetBeatMap(beatMap *beatmap.BeatMap)

func (*ReplayController) Update

func (controller *ReplayController) Update(time float64, delta float64)

type RpData

type RpData struct {
	RawName  string
	Name     string
	Mods     string
	ModsV    difficulty.Modifier
	Accuracy float64
	Combo    int64
	MaxCombo int64
	Grade    osu.Grade

	ScoreTime time.Time
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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