boss

package
v0.0.0-...-7aa605c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BossRadius = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pattern

type Pattern interface {
	Update(ctx *entity.Context)
	Over() bool
}

type PatternInstancier

type PatternInstancier func(ctx *entity.Context) Pattern

func NewChargeToEdge

func NewChargeToEdge() PatternInstancier

func NewComet

func NewComet() PatternInstancier

func NewCometTargeted

func NewCometTargeted() PatternInstancier

func NewMoveTo

func NewMoveTo() PatternInstancier

func NewMultiPattern

func NewMultiPattern(instanciers ...PatternInstancier) PatternInstancier

func NewRandomWalk

func NewRandomWalk() PatternInstancier

func NewShoot

func NewShoot() PatternInstancier

type Sequence

type Sequence struct {
	// contains filtered or unexported fields
}

func (*Sequence) Over

func (s *Sequence) Over() bool

func (*Sequence) Update

func (s *Sequence) Update(ctx *entity.Context)

type SmokeMask

type SmokeMask struct {
	// contains filtered or unexported fields
}

func NewSmokeMask

func NewSmokeMask(position mgl64.Vec3, stageNum int) *SmokeMask

func (*SmokeMask) AppendVerticesIndices

func (sm *SmokeMask) AppendVerticesIndices(vx []ebiten.Vertex, ix []uint16, index *int, ctx *graphics.Context) ([]ebiten.Vertex, []uint16)

func (*SmokeMask) Damage

func (sm *SmokeMask) Damage() float64

func (*SmokeMask) Dead

func (sm *SmokeMask) Dead() bool

func (*SmokeMask) Health

func (sm *SmokeMask) Health() float64

func (*SmokeMask) Image

func (sm *SmokeMask) Image() *ebiten.Image

func (*SmokeMask) MarkerShape

func (sm *SmokeMask) MarkerShape() *aoe.CircleBorder

func (*SmokeMask) MaxHealth

func (sm *SmokeMask) MaxHealth() float64

func (*SmokeMask) Position

func (sm *SmokeMask) Position() mgl64.Vec3

func (*SmokeMask) Radius

func (sm *SmokeMask) Radius() float64

func (*SmokeMask) SetPosition

func (sm *SmokeMask) SetPosition(pos mgl64.Vec3)

func (*SmokeMask) SetStance

func (sm *SmokeMask) SetStance(stance entity.Stance)

func (*SmokeMask) TakeHit

func (sm *SmokeMask) TakeHit(dmg float64)

func (*SmokeMask) Team

func (sm *SmokeMask) Team() entity.Team

func (*SmokeMask) Update

func (sm *SmokeMask) Update(ctx *entity.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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