pattern

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comet

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

func NewComet

func NewComet(pos mgl64.Vec3, radius, speed float64, delay uint) *Comet

func (*Comet) Over

func (s *Comet) Over() bool

func (*Comet) Update

func (d *Comet) Update(ctx *entity.Context)

type Delay

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

func NewDelay

func NewDelay(duration uint) *Delay

func (*Delay) Over

func (d *Delay) Over() bool

func (*Delay) Update

func (d *Delay) Update(ctx *entity.Context)

type MoveTo

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

func NewMoveTo

func NewMoveTo(pos, target mgl64.Vec3, speed float64, delay uint, charge bool) *MoveTo

func (*MoveTo) Over

func (mt *MoveTo) Over() bool

func (*MoveTo) Update

func (mt *MoveTo) Update(ctx *entity.Context)

type RandomWalk

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

func NewRandomWalk

func NewRandomWalk(length, speed float64) *RandomWalk

func (*RandomWalk) Over

func (rw *RandomWalk) Over() bool

func (*RandomWalk) Update

func (rw *RandomWalk) Update(ctx *entity.Context)

type Shoot

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

func NewShoot

func NewShoot(speed float64, delay uint) *Shoot

func (*Shoot) Over

func (s *Shoot) Over() bool

func (*Shoot) Update

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

Jump to

Keyboard shortcuts

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