dance

package
v0.0.0-...-50c553c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func SetMover

func SetMover(name string)

Types

type Controller

type Controller interface {
	SetBeatMap(beatMap *beatmap.BeatMap)
	InitCursors()

	/////////////////////////////////////////////////////////////////////////////////////////////////////
	// 改成更多参数
	Update(time int64, delta float64, position bmath.Vector2d)

	GetCursors() []*render.Cursor

	SetPlayername(playername string)
	GetPlayname() string

	SetPresskey(presskey rplpa.KeyPressed)
	GetPresskey() rplpa.KeyPressed

	SetMods(mods uint32)
	GetMods() uint32

	SetHitResult(result []hitjudge.ObjectResult)
	GetHitResult() []hitjudge.ObjectResult

	SetTotalResult(result []hitjudge.TotalResult)
	GetTotalResult() []hitjudge.TotalResult

	SetAcc(result float64)
	GetAcc() float64

	SetPP(result float64)
	GetPP() float64

	SetUR(result float64)
	GetUR() float64

	SetRank(result texture.TextureRegion)
	GetRank() texture.TextureRegion

	SetIsShow(isShow bool)
	GetIsShow() bool

	SetDishowTime(time float64)
	GetDishowTime() float64

	SetDishowPos(pos bmath.Vector2d, rate int)
	GetDishowPos() bmath.Vector2d

	AddMissInfo(misstime float64, missjudgetime int64, misspos bmath.Vector2d, rate int)
	GetMissInfo() []missInfo
	SetMissInfo(missInfo []missInfo)

	IsInMiss(time int64) bool
}

func NewReplayController

func NewReplayController() Controller

type ReplayController

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

func (*ReplayController) AddMissInfo

func (controller *ReplayController) AddMissInfo(misstime float64, missjudgetime int64, misspos bmath.Vector2d, rate int)

func (*ReplayController) GetAcc

func (controller *ReplayController) GetAcc() float64

func (*ReplayController) GetCursors

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

func (*ReplayController) GetDishowPos

func (controller *ReplayController) GetDishowPos() bmath.Vector2d

func (*ReplayController) GetDishowTime

func (controller *ReplayController) GetDishowTime() float64

func (*ReplayController) GetHitResult

func (controller *ReplayController) GetHitResult() []hitjudge.ObjectResult

func (*ReplayController) GetIsShow

func (controller *ReplayController) GetIsShow() bool

func (*ReplayController) GetMissInfo

func (controller *ReplayController) GetMissInfo() []missInfo

func (*ReplayController) GetMods

func (controller *ReplayController) GetMods() uint32

func (*ReplayController) GetPP

func (controller *ReplayController) GetPP() float64

func (*ReplayController) GetPlayname

func (controller *ReplayController) GetPlayname() string

func (*ReplayController) GetPresskey

func (controller *ReplayController) GetPresskey() rplpa.KeyPressed

func (*ReplayController) GetRank

func (controller *ReplayController) GetRank() texture.TextureRegion

func (*ReplayController) GetTotalResult

func (controller *ReplayController) GetTotalResult() []hitjudge.TotalResult

func (*ReplayController) GetUR

func (controller *ReplayController) GetUR() float64

func (*ReplayController) InitCursors

func (controller *ReplayController) InitCursors()

func (*ReplayController) IsInMiss

func (controller *ReplayController) IsInMiss(time int64) bool

检查是否已经录入

func (*ReplayController) SetAcc

func (controller *ReplayController) SetAcc(result float64)

func (*ReplayController) SetBeatMap

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

func (*ReplayController) SetDishowPos

func (controller *ReplayController) SetDishowPos(pos bmath.Vector2d, rate int)

func (*ReplayController) SetDishowTime

func (controller *ReplayController) SetDishowTime(time float64)

func (*ReplayController) SetHitResult

func (controller *ReplayController) SetHitResult(result []hitjudge.ObjectResult)

func (*ReplayController) SetIsShow

func (controller *ReplayController) SetIsShow(isShow bool)

func (*ReplayController) SetMissInfo

func (controller *ReplayController) SetMissInfo(missInfo []missInfo)

func (*ReplayController) SetMods

func (controller *ReplayController) SetMods(mods uint32)

func (*ReplayController) SetPP

func (controller *ReplayController) SetPP(result float64)

func (*ReplayController) SetPlayername

func (controller *ReplayController) SetPlayername(playername string)

func (*ReplayController) SetPresskey

func (controller *ReplayController) SetPresskey(presskey rplpa.KeyPressed)

func (*ReplayController) SetRank

func (controller *ReplayController) SetRank(result texture.TextureRegion)

func (*ReplayController) SetTotalResult

func (controller *ReplayController) SetTotalResult(result []hitjudge.TotalResult)

func (*ReplayController) SetUR

func (controller *ReplayController) SetUR(result float64)

func (*ReplayController) Update

func (controller *ReplayController) Update(time int64, delta float64, position bmath.Vector2d)

/////////////////////////////////////////////////////////////////////////////////////////////////// 更新时间和光标位置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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