Documentation ¶
Index ¶
- type Target
- func (t *Target) AttackWillLand(a combat.AttackPattern, src combat.TargetKey) (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) Index() int
- 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) SetIndex(ind 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) WillCollide(s combat.Shape) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct { Core *core.Core TargetIndex int 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 (*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
Click to show internal directories.
Click to hide internal directories.