Files
bl/logic/service/common/fight.go

24 lines
622 B
Go
Raw Normal View History

package common
import (
"blazing/logic/service/fight/info"
"math/rand"
)
type FightI interface {
Over(c PlayerI, id info.EnumBattleOverReason, fn func()) //逃跑
UseSkill(c PlayerI, id int32) //使用技能
GetCurrPET(c PlayerI) *info.BattlePetEntity //当前精灵
2025-11-11 05:54:24 +00:00
Ownerid() uint32
ReadyFight(c PlayerI) //是否准备战斗
ChangePet(c PlayerI, id uint32)
Capture(c PlayerI, id uint32)
GetRand() *rand.Rand
LoadPercent(c PlayerI, percent int32)
UseItem(c PlayerI, cacthid, itemid uint32)
CanEscape() bool
2025-09-30 18:32:15 +08:00
IsFirst(c PlayerI) bool
//GetOverChan() chan struct{}
}