1
This commit is contained in:
parent
e9a0e5b098
commit
8557cf5062
@ -150,6 +150,7 @@ type Player interface {
|
|||||||
FillMFTeamMember(*cs.MFTeamMember)
|
FillMFTeamMember(*cs.MFTeamMember)
|
||||||
GetSortIdx() int32
|
GetSortIdx() int32
|
||||||
SetSortIdx(int32)
|
SetSortIdx(int32)
|
||||||
|
IsBattling() bool
|
||||||
GenNextCopy() Player
|
GenNextCopy() Player
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ type player struct {
|
|||||||
totalLucky int64
|
totalLucky int64
|
||||||
hero hero
|
hero hero
|
||||||
team common.Team
|
team common.Team
|
||||||
|
battling bool
|
||||||
sortIdx int32
|
sortIdx int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -541,6 +542,10 @@ func (this *player) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *cs.CMGrantInvit
|
|||||||
this.GetTeam().SendUpdateNotify()
|
this.GetTeam().SendUpdateNotify()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *player) IsBattling() bool {
|
||||||
|
return this.battling
|
||||||
|
}
|
||||||
|
|
||||||
func newPlayer() *player {
|
func newPlayer() *player {
|
||||||
hum := new(player)
|
hum := new(player)
|
||||||
return hum
|
return hum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user