package common import ( "blazing/common/socket/errorcode" "blazing/logic/service/fight/info" space "blazing/logic/service/space/info" "blazing/modules/player/model" ) // PlayerI 定义战斗与 common 服务依赖的最小玩家能力接口。 type PlayerI interface { ApplyPetDisplayInfo(*space.SimpleInfo) GetPlayerCaptureContext() *info.PlayerCaptureContext Roll(int, int) (bool, float64, float64) //SendPack(b []byte) error Getfightinfo() info.Fightinfo ItemAdd(ItemId, ItemCnt int64) (result bool) GetInfo() *model.PlayerInfo InvitePlayer(PlayerI) SetFightC(FightI) QuitFight() MessWin(bool) CanFight() errorcode.ErrorCode SendPackCmd(uint32, any) GetPetInfo(limitlevel uint32) []model.PetInfo }