Documentation
¶
Index ¶
- Variables
- func SetMover(name string)
- type Controller
- type ReplayController
- func (controller *ReplayController) AddMissInfo(misstime float64, missjudgetime int64, misspos bmath.Vector2d, rate int)
- func (controller *ReplayController) GetAcc() float64
- func (controller *ReplayController) GetCursors() []*render.Cursor
- func (controller *ReplayController) GetDishowPos() bmath.Vector2d
- func (controller *ReplayController) GetDishowTime() float64
- func (controller *ReplayController) GetHitResult() []hitjudge.ObjectResult
- func (controller *ReplayController) GetIsShow() bool
- func (controller *ReplayController) GetMissInfo() []missInfo
- func (controller *ReplayController) GetMods() uint32
- func (controller *ReplayController) GetPP() float64
- func (controller *ReplayController) GetPlayname() string
- func (controller *ReplayController) GetPresskey() rplpa.KeyPressed
- func (controller *ReplayController) GetRank() texture.TextureRegion
- func (controller *ReplayController) GetTotalResult() []hitjudge.TotalResult
- func (controller *ReplayController) GetUR() float64
- func (controller *ReplayController) InitCursors()
- func (controller *ReplayController) IsInMiss(time int64) bool
- func (controller *ReplayController) SetAcc(result float64)
- func (controller *ReplayController) SetBeatMap(beatMap *beatmap.BeatMap)
- func (controller *ReplayController) SetDishowPos(pos bmath.Vector2d, rate int)
- func (controller *ReplayController) SetDishowTime(time float64)
- func (controller *ReplayController) SetHitResult(result []hitjudge.ObjectResult)
- func (controller *ReplayController) SetIsShow(isShow bool)
- func (controller *ReplayController) SetMissInfo(missInfo []missInfo)
- func (controller *ReplayController) SetMods(mods uint32)
- func (controller *ReplayController) SetPP(result float64)
- func (controller *ReplayController) SetPlayername(playername string)
- func (controller *ReplayController) SetPresskey(presskey rplpa.KeyPressed)
- func (controller *ReplayController) SetRank(result texture.TextureRegion)
- func (controller *ReplayController) SetTotalResult(result []hitjudge.TotalResult)
- func (controller *ReplayController) SetUR(result float64)
- func (controller *ReplayController) Update(time int64, delta float64, position bmath.Vector2d)
Constants ¶
This section is empty.
Variables ¶
View Source
var Mover = movers.NewAngleOffsetMover
Functions ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.