dangerobject

package
v0.0.0-...-e449b39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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) GetUUID

func (p *DangerObject) GetUUID() string

IDPosI interface

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL