target

package
v0.0.0-...-dff1495 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTeamSize = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	Core *core.Core

	Hitbox          geometry.Circle
	Tags            map[string]int
	CollidableTypes [targets.TargettableTypeCount]bool
	OnCollision     func(combat.Target)

	Alive bool
	// contains filtered or unexported fields
}

func New

func New(core *core.Core, p geometry.Point, r float64) *Target

func (*Target) AttackWillLand

func (t *Target) AttackWillLand(a combat.AttackPattern) (bool, string)

func (*Target) CalcTempDirection

func (t *Target) CalcTempDirection(trg geometry.Point) geometry.Point

func (*Target) Collidable

func (t *Target) Collidable() bool

func (*Target) CollidableWith

func (t *Target) CollidableWith(x targets.TargettableType) bool

func (*Target) CollidedWith

func (t *Target) CollidedWith(x combat.Target)

func (*Target) Direction

func (t *Target) Direction() geometry.Point

func (*Target) GetTag

func (t *Target) GetTag(key string) int

func (*Target) GroupTagDamageMult

func (t *Target) GroupTagDamageMult(tag attacks.ICDTag, grp attacks.ICDGroup, char int) float64

func (*Target) IsAlive

func (t *Target) IsAlive() bool

func (*Target) IsWithinArea

func (t *Target) IsWithinArea(a combat.AttackPattern) bool

func (*Target) Key

func (t *Target) Key() targets.TargetKey

func (*Target) Kill

func (t *Target) Kill()

func (*Target) Pos

func (t *Target) Pos() geometry.Point

func (*Target) RemoveTag

func (t *Target) RemoveTag(key string)

func (*Target) ResetDamageCounterAfterDelay

func (t *Target) ResetDamageCounterAfterDelay(tag attacks.ICDTag, grp attacks.ICDGroup, char int)

func (*Target) ResetTagCounterAfterDelay

func (t *Target) ResetTagCounterAfterDelay(tag attacks.ICDTag, grp attacks.ICDGroup, char int)

func (*Target) SetDirection

func (t *Target) SetDirection(trg geometry.Point)

func (*Target) SetDirectionToClosestEnemy

func (t *Target) SetDirectionToClosestEnemy()

func (*Target) SetKey

func (t *Target) SetKey(x targets.TargetKey)

func (*Target) SetPos

func (t *Target) SetPos(p geometry.Point)

func (*Target) SetTag

func (t *Target) SetTag(key string, val int)

func (*Target) Shape

func (t *Target) Shape() geometry.Shape

func (*Target) WillApplyEle

func (t *Target) WillApplyEle(tag attacks.ICDTag, grp attacks.ICDGroup, char int) float64

func (*Target) WillCollide

func (t *Target) WillCollide(s geometry.Shape) bool

Jump to

Keyboard shortcuts

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