enemy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Up int = iota
	Down
	Left
	Right
)

Variables

View Source
var (
	Enemynumers = 0
	Limit       = 5
)

Functions

func GetCreatEnemy

func GetCreatEnemy() bool

func Update

func Update()

Types

type Enemy

type Enemy struct {
	MoveDuration   int
	AttackDuration int
	Direction      direction.Direction
	Attack         bool
	Tank           *tank.Tank
	Index          int
}

func (*Enemy) IsMove

func (a *Enemy) IsMove()

func (*Enemy) Update

func (a *Enemy) Update()

Jump to

Keyboard shortcuts

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