Documentation ¶
Index ¶
- Constants
- type Target
- func (t *Target) AttackWillLand(a combat.AttackPattern) (bool, string)
- func (t *Target) Collidable() bool
- func (t *Target) CollidableWith(x combat.TargettableType) bool
- func (t *Target) CollidedWith(x combat.Target)
- func (t *Target) GetTag(key string) int
- func (t *Target) GroupTagDamageMult(tag combat.ICDTag, grp combat.ICDGroup, char int) float64
- func (t *Target) IsAlive() bool
- func (t *Target) Key() combat.TargetKey
- func (t *Target) Kill()
- func (t *Target) Pos() (float64, float64)
- func (t *Target) RemoveTag(key string)
- func (t *Target) ResetDamageCounterAfterDelay(tag combat.ICDTag, grp combat.ICDGroup, char int)
- func (t *Target) ResetTagCounterAfterDelay(tag combat.ICDTag, grp combat.ICDGroup, char int)
- func (t *Target) SetKey(x combat.TargetKey)
- func (t *Target) SetPos(x, y float64)
- func (t *Target) SetTag(key string, val int)
- func (t *Target) Shape() combat.Shape
- func (t *Target) WillApplyEle(tag combat.ICDTag, grp combat.ICDGroup, char int) float64
- func (t *Target) WillCollide(s combat.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 combat.Circle Tags map[string]int CollidableTypes [combat.TargettableTypeCount]bool OnCollision func(combat.Target) Alive bool // contains filtered or unexported fields }
func (*Target) AttackWillLand ¶ added in v1.2.0
func (t *Target) AttackWillLand(a combat.AttackPattern) (bool, string)
func (*Target) Collidable ¶ added in v1.2.0
func (*Target) CollidableWith ¶ added in v1.2.0
func (t *Target) CollidableWith(x combat.TargettableType) bool
func (*Target) CollidedWith ¶ added in v1.2.0
func (*Target) GroupTagDamageMult ¶ added in v1.3.0
func (*Target) ResetDamageCounterAfterDelay ¶ added in v1.3.0
func (*Target) ResetTagCounterAfterDelay ¶ added in v1.3.0
func (*Target) WillApplyEle ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.