2025-09-14 01:35:16 +08:00
|
|
|
package common
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/info"
|
2026-01-19 18:51:56 +08:00
|
|
|
"blazing/modules/player/model"
|
2025-09-14 01:35:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type PlayerI interface {
|
2025-09-21 14:56:37 +00:00
|
|
|
GetPlayerCaptureContext() *info.PlayerCaptureContext
|
|
|
|
|
Roll(int, int) (bool, float64, float64)
|
2025-11-18 20:52:04 +00:00
|
|
|
//SendPack(b []byte) error
|
2025-11-18 22:16:55 +00:00
|
|
|
Getfightinfo() info.Fightinfo
|
2025-11-18 20:52:04 +00:00
|
|
|
|
2025-09-21 14:56:37 +00:00
|
|
|
GetInfo() *model.PlayerInfo
|
2025-11-18 23:41:31 +00:00
|
|
|
InvitePlayer(PlayerI)
|
2025-09-14 01:35:16 +08:00
|
|
|
SetFightC(FightI)
|
2025-11-18 22:16:55 +00:00
|
|
|
QuitFight()
|
2025-11-20 05:57:29 +08:00
|
|
|
CanFight() bool
|
2025-11-19 16:11:02 +08:00
|
|
|
SendPackCmd(uint32, any)
|
2025-09-14 01:35:16 +08:00
|
|
|
}
|