Files
bl/logic/service/common/fight.go
xinian d83cf365ac
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
更新说明
2026-04-05 23:13:06 +08:00

30 lines
987 B
Go

package common
import (
"blazing/logic/service/fight/info"
"blazing/modules/player/model"
)
// FightI 定义 common 服务层依赖的战斗操作接口。
type FightI interface {
Over(c PlayerI, id model.EnumBattleOverReason) //逃跑
UseSkill(c PlayerI, id uint32) //使用技能
UseSkillAt(c PlayerI, id uint32, actorIndex, targetIndex int)
GetCurrPET(c PlayerI) *info.BattlePetEntity //当前精灵
GetCurrPETAt(c PlayerI, actorIndex int) *info.BattlePetEntity
GetOverInfo() model.FightOverInfo
Ownerid() uint32
ReadyFight(c PlayerI) //是否准备战斗
ChangePet(c PlayerI, id uint32)
ChangePetAt(c PlayerI, id uint32, actorIndex int)
Capture(c PlayerI, id uint32)
LoadPercent(c PlayerI, percent int32)
UseItem(c PlayerI, cacthid, itemid uint32)
UseItemAt(c PlayerI, cacthid, itemid uint32, actorIndex, targetIndex int)
Chat(c PlayerI, msg string)
IsFirst(c PlayerI) bool
GetOverChan() chan struct{}
GetAttackValue(bool) *model.AttackValue
}