npcs

package
v0.0.0-...-42b3dd6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	X float64
	Y float64
	Z float64
}

func (Location) String

func (loc Location) String() string

type NonPlayerCharacter

type NonPlayerCharacter struct {
	Name  string
	Speed int
	HP    int
	Power Power
	Loc   Location
}

func (NonPlayerCharacter) DistanceTo

func (npc NonPlayerCharacter) DistanceTo(target NonPlayerCharacter) float64

func (NonPlayerCharacter) String

func (npc NonPlayerCharacter) String() string

type Power

type Power struct {
	Attack  int
	Defense int
}

Jump to

Keyboard shortcuts

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