2025-09-14 01:35:16 +08:00
|
|
|
package common
|
|
|
|
|
|
2025-09-14 03:36:26 +08:00
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/info"
|
2026-03-04 22:47:21 +08:00
|
|
|
"blazing/modules/player/model"
|
2025-09-14 03:36:26 +08:00
|
|
|
)
|
2025-09-14 01:35:16 +08:00
|
|
|
|
|
|
|
|
type FightI interface {
|
2026-03-04 22:47:21 +08:00
|
|
|
Over(c PlayerI, id model.EnumBattleOverReason) //逃跑
|
|
|
|
|
UseSkill(c PlayerI, id uint32) //使用技能
|
|
|
|
|
GetCurrPET(c PlayerI) *info.BattlePetEntity //当前精灵
|
|
|
|
|
GetOverInfo() model.FightOverInfo
|
2025-09-14 01:35:16 +08:00
|
|
|
Ownerid() uint32
|
|
|
|
|
ReadyFight(c PlayerI) //是否准备战斗
|
|
|
|
|
ChangePet(c PlayerI, id uint32)
|
|
|
|
|
Capture(c PlayerI, id uint32)
|
2025-12-10 18:37:32 +00:00
|
|
|
|
2025-09-25 14:51:11 +00:00
|
|
|
LoadPercent(c PlayerI, percent int32)
|
2025-11-08 01:30:53 +08:00
|
|
|
UseItem(c PlayerI, cacthid, itemid uint32)
|
2025-11-25 16:36:55 +08:00
|
|
|
Chat(c PlayerI, msg string)
|
2025-09-30 18:32:15 +08:00
|
|
|
IsFirst(c PlayerI) bool
|
2025-11-12 01:19:24 +08:00
|
|
|
GetOverChan() chan struct{}
|
2026-03-07 00:26:05 +08:00
|
|
|
GetAttackValue(bool) *model.AttackValue
|
2025-09-14 01:35:16 +08:00
|
|
|
}
|