Documentation ¶
Index ¶
- Constants
- type Target
- func (t *Target) AttackWillLand(a combat.AttackPattern) (bool, string)
- func (t *Target) CalcTempDirection(trg geometry.Point) geometry.Point
- func (t *Target) Collidable() bool
- func (t *Target) CollidableWith(x targets.TargettableType) bool
- func (t *Target) CollidedWith(x combat.Target)
- func (t *Target) Direction() geometry.Point
- func (t *Target) GetTag(key string) int
- func (t *Target) GroupTagDamageMult(tag attacks.ICDTag, grp attacks.ICDGroup, char int) float64
- func (t *Target) IsAlive() bool
- func (t *Target) IsWithinArea(a combat.AttackPattern) bool
- func (t *Target) Key() targets.TargetKey
- func (t *Target) Kill()
- func (t *Target) Pos() geometry.Point
- func (t *Target) RemoveTag(key string)
- func (t *Target) ResetDamageCounterAfterDelay(tag attacks.ICDTag, grp attacks.ICDGroup, char int)
- func (t *Target) ResetTagCounterAfterDelay(tag attacks.ICDTag, grp attacks.ICDGroup, char int)
- func (t *Target) SetDirection(trg geometry.Point)
- func (t *Target) SetDirectionToClosestEnemy()
- func (t *Target) SetKey(x targets.TargetKey)
- func (t *Target) SetPos(p geometry.Point)
- func (t *Target) SetTag(key string, val int)
- func (t *Target) Shape() geometry.Shape
- func (t *Target) WillApplyEle(tag attacks.ICDTag, grp attacks.ICDGroup, char int) float64
- func (t *Target) WillCollide(s geometry.Shape) bool
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 (*Target) AttackWillLand ¶
func (t *Target) AttackWillLand(a combat.AttackPattern) (bool, string)
func (*Target) CalcTempDirection ¶
func (*Target) Collidable ¶
func (*Target) CollidableWith ¶
func (t *Target) CollidableWith(x targets.TargettableType) bool
func (*Target) CollidedWith ¶
func (*Target) GroupTagDamageMult ¶
func (*Target) IsWithinArea ¶
func (t *Target) IsWithinArea(a combat.AttackPattern) bool
func (*Target) ResetDamageCounterAfterDelay ¶
func (*Target) ResetTagCounterAfterDelay ¶
func (*Target) SetDirection ¶
func (*Target) SetDirectionToClosestEnemy ¶
func (t *Target) SetDirectionToClosestEnemy()
func (*Target) WillApplyEle ¶
Click to show internal directories.
Click to hide internal directories.