beings

package
v0.0.0-...-5016d65 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Being

type Being struct {
	Name     string
	Species  string
	Gender   string
	Location Coord
}

type BeingsMap

type BeingsMap map[Coord]Being

func Init

func Init() BeingsMap

func (BeingsMap) AddBeing

func (b BeingsMap) AddBeing(x int32, y int32, name string, species string, gender string) bool

add being, return false if it could not be added

func (BeingsMap) GetBeing

func (b BeingsMap) GetBeing(x int32, y int32) Being

type Coord

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

Jump to

Keyboard shortcuts

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