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

29 lines
923 B
Go

package common
import (
"blazing/logic/service/fight/info"
"blazing/modules/player/model"
)
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
}