xship

package
v0.0.0-...-cafaf1c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

func NewEntity

func NewEntity() *Entity

func (*Entity) Draw

func (e *Entity) Draw()

func (*Entity) HealthPoint

func (e *Entity) HealthPoint() int

func (*Entity) Hit

func (e *Entity) Hit(hitPoint int)

func (*Entity) IntroMove

func (e *Entity) IntroMove()

func (*Entity) IntroUpdate

func (e *Entity) IntroUpdate()

func (*Entity) IsVulnerable

func (e *Entity) IsVulnerable() bool

func (*Entity) Move

func (e *Entity) Move()

func (*Entity) Position

func (e *Entity) Position() img.Position

func (*Entity) SetHealthPoint

func (e *Entity) SetHealthPoint(hp int)

func (*Entity) Update

func (e *Entity) Update(missilesIdx *int, missileEntities []*missile.Entity)

Jump to

Keyboard shortcuts

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