lifepool

package
v0.0.0-...-e57d4e3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data structure for pool

func CreatNewPool

func CreatNewPool(inst field, npcData, mobData []nx.Life, mobCapMin, mobCapMax int) Data

CreatNewPool for life

func (*Data) AddPlayer

func (pool *Data) AddPlayer(plr controller)

AddPlayer to be added to the pool

func (*Data) KillMobs

func (pool *Data) KillMobs(deathType byte)

KillMobs in the pool

func (*Data) MobAcknowledge

func (pool *Data) MobAcknowledge(poolID int32, plr controller, moveID int16, skillPossible bool, action byte, skillData uint32, moveData movement.Data, finalData movement.Frag, moveBytes []byte)

MobAcknowledge bytes to be applied to the pool

func (*Data) MobDamaged

func (pool *Data) MobDamaged(poolID int32, damager player, prty party, dmg ...int32)

MobDamaged handling

func (*Data) NpcAcknowledge

func (pool *Data) NpcAcknowledge(poolID int32, plr controller, data []byte)

NpcAcknowledge bytes to be applied to the pool

func (*Data) RemovePlayer

func (pool *Data) RemovePlayer(plr controller)

RemovePlayer from pool

func (*Data) SpawnMobFromID

func (pool *Data) SpawnMobFromID(mobID int32, location pos.Data, hasAgro, items, mesos bool) error

SpawnMobFromID into the pool

func (*Data) Update

func (pool *Data) Update(t time.Time)

Update logic for the pool e.g. mob spawning

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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