simulation

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentNewFunc

type AgentNewFunc func(base *infra.Base) (infra.Agent, error)

type Fields

type Fields = log.Fields

type SimEnv

type SimEnv struct {
	FoodOnPlatform food.FoodType
	AgentCount     []int
	AgentHP        int
	AgentsPerFloor int
	// contains filtered or unexported fields
}

func NewSimEnv

func NewSimEnv(parameters *config.ConfigParameters, healthInfo *health.HealthInfo) *SimEnv

func (*SimEnv) AgentsCount

func (sE *SimEnv) AgentsCount(t *infra.Tower) int

func (*SimEnv) AgentsRun

func (sE *SimEnv) AgentsRun(t *infra.Tower)

func (*SimEnv) Log

func (s *SimEnv) Log(message string, fields ...Fields)

func (*SimEnv) SetWorld

func (sE *SimEnv) SetWorld(w world.World)

func (*SimEnv) Simulate

func (sE *SimEnv) Simulate()

func (*SimEnv) TowerTick

func (sE *SimEnv) TowerTick()

func (*SimEnv) World

func (sE *SimEnv) World() world.World

Jump to

Keyboard shortcuts

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