2025-09-14 01:35:16 +08:00
|
|
|
package common
|
|
|
|
|
|
2025-09-14 03:36:26 +08:00
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/info"
|
|
|
|
|
"math/rand"
|
|
|
|
|
)
|
2025-09-14 01:35:16 +08:00
|
|
|
|
|
|
|
|
type FightI interface {
|
2025-09-23 16:42:10 +00:00
|
|
|
Over(c PlayerI, id info.EnumBattleOverReason) //逃跑
|
|
|
|
|
UseSkill(c PlayerI, id int32) //使用技能
|
|
|
|
|
GetCurrPET(c PlayerI) *info.BattlePetEntity //当前精灵
|
2025-09-14 01:35:16 +08:00
|
|
|
Ownerid() uint32
|
|
|
|
|
ReadyFight(c PlayerI) //是否准备战斗
|
|
|
|
|
ChangePet(c PlayerI, id uint32)
|
|
|
|
|
Capture(c PlayerI, id uint32)
|
2025-09-14 03:36:26 +08:00
|
|
|
GetRand() *rand.Rand
|
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-05 17:19:09 +00:00
|
|
|
CanEscape() bool
|
2025-09-30 18:32:15 +08:00
|
|
|
IsFirst(c PlayerI) bool
|
2025-11-10 02:29:00 +08:00
|
|
|
GetOverChan() chan struct{}
|
2025-09-14 01:35:16 +08:00
|
|
|
}
|