Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DOIDMaker = idu64str.New("DOID")
Functions ¶
This section is empty.
Types ¶
type DangerObject ¶
type DangerObject struct { UUID string Owner uuidposmani.UUIDPosI // id of owner ( ao, floor? , fieldobj?) OwnerX, OwnerY int // pos at make attack time DangerType dangertype.DangerType RemainTurn int // remain turn to affect AffectRate float64 }
func NewAOAttact ¶
func NewAOAttact(attacker uuidposmani.UUIDPosI, dt dangertype.DangerType, srcx, srcy int) *DangerObject
func NewFOAttact ¶
func NewFOAttact(attacker uuidposmani.UUIDPosI, dt dangertype.DangerType, affectRate float64) *DangerObject
func (*DangerObject) Live1Turn ¶
func (p *DangerObject) Live1Turn() bool
Live1Turn reduce remain turn and return alive
func (*DangerObject) ToPacket_DangerObjClient ¶
func (p *DangerObject) ToPacket_DangerObjClient(x, y int) *c2t_obj.DangerObjClient
Click to show internal directories.
Click to hide internal directories.