worldsim

package module
v0.0.0-...-7439e74 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID() string

Types

type Agent

type Agent interface {
	Identifyable
	Locatable

	Sense()
	Act()
}

type Area

type Area interface {
	Identifyable

	Neighbors()
}

type Identifyable

type Identifyable interface {
	ID() string
}

type Locatable

type Locatable interface {
	AreaID() string
	AreaCoords() []float64
}

type Object

type Object interface {
	Identifyable
	Locatable
}

type World

type World interface {
	Agents() map[string]Agent
	Objects() map[string]Object
	Areas() map[string]Area
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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