Documentation ¶
Index ¶
- type Data
- func (m *Data) AcknowledgeController(moveID int16, movData movement.Frag, allowedToUseSkill bool, skill, level byte)
- func (m Data) Boss() bool
- func (m Data) Controller() controller
- func (m Data) DisplayBytes() []byte
- func (m Data) Exp() int32
- func (m Data) FaceLeft() bool
- func (m Data) GetDamage() map[controller]int32
- func (m *Data) GiveDamage(damager controller, dmg ...int32)
- func (m Data) HP() int32
- func (m Data) HasHPBar() (bool, int32, int32, int32, byte, byte)
- func (m Data) ID() int32
- func (m *Data) Kill(inst instance, plr player)
- func (m Data) MaxHP() int32
- func (m *Data) PerformAttack(attackID byte)
- func (m *Data) PerformSkill(delay int16, skillLevel, skillID byte)
- func (m Data) Pos() pos.Data
- func (m *Data) RemoveController()
- func (m Data) Revives() []int32
- func (m *Data) SetController(controller controller, follow bool)
- func (m *Data) SetFaceLeft(v bool)
- func (m *Data) SetSpawnID(v int32)
- func (m *Data) SetSummonOption(v int32)
- func (m *Data) SetSummonType(v int8)
- func (m *Data) SetTimeToSpawn(t time.Time)
- func (m Data) SpawnID() int32
- func (m Data) SpawnInterval() int64
- func (m Data) String() string
- func (m Data) SummonType() int8
- func (m Data) TimeToSpawn() time.Time
- func (m *Data) Update(t time.Time)
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 for mob
func CreateFromData ¶
CreateFromData - creates a mob from nx data
func CreateFromID ¶
func CreateFromID(spawnID, id int32, p pos.Data, controller controller, dropsItems, dropsMesos bool) (Data, error)
CreateFromID - creates a mob from an id and position data
func (*Data) AcknowledgeController ¶
func (m *Data) AcknowledgeController(moveID int16, movData movement.Frag, allowedToUseSkill bool, skill, level byte)
AcknowledgeController movement bytes
func (*Data) GiveDamage ¶
GiveDamage to mob
func (*Data) PerformAttack ¶
PerformAttack - mob attack action
func (*Data) PerformSkill ¶
PerformSkill - mob skill action
func (*Data) SetController ¶
SetController of mob
Click to show internal directories.
Click to hide internal directories.