enemy

package
v0.0.0-...-57f8e72 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enemy

type Enemy struct {
	Hitbox      *rl.Rectangle
	IsAlive     bool
	BulletTimer *util.Timer
	Color       rl.Color
	Speed       int
	// contains filtered or unexported fields
}

func InitCharacter

func InitCharacter(windowWidth, windowHeight int32) *Enemy

func (*Enemy) DrawObject

func (enemy *Enemy) DrawObject()

func (*Enemy) GetHandlerByType

func (enemy *Enemy) GetHandlerByType(obType gameobject.ObjectType) gameobject.CollisionHandlerFunction

func (Enemy) GetMarkedForDestroy

func (enemy Enemy) GetMarkedForDestroy() bool

func (Enemy) GetObjectType

func (enemy Enemy) GetObjectType() gameobject.ObjectType

func (Enemy) GetObjectTypeString

func (enemy Enemy) GetObjectTypeString() string

func (Enemy) GetPosition

func (enemy Enemy) GetPosition() rl.Rectangle

func (Enemy) GetUuid

func (enemy Enemy) GetUuid() string

func (*Enemy) SetMarkedForDestroy

func (enemy *Enemy) SetMarkedForDestroy()

func (*Enemy) SpawnEnemyBullet

func (enemy *Enemy) SpawnEnemyBullet()

Jump to

Keyboard shortcuts

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