simulation

package
v0.0.0-...-dff1495 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 382 Imported by: 0

Documentation

Overview

Code generated by "pipeline"; DO NOT EDIT.

Package simulation provide the functionality required to run one simulation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCore

func NewCore(seed int64, debug bool, cfg *info.ActionList) (*core.Core, error)

func SetupCharactersInCore

func SetupCharactersInCore(core *core.Core, chars []info.CharacterProfile, initial keys.Char) error

func SetupMisc

func SetupMisc(c *core.Core)

func SetupResonance

func SetupResonance(s *core.Core)

func SetupTargetsInCore

func SetupTargetsInCore(core *core.Core, p geometry.Point, r float64, targets []info.EnemyProfile) error

Types

type Simulation

type Simulation struct {
	C *core.Core
	// contains filtered or unexported fields
}

func New

func New(cfg *info.ActionList, eval action.Evaluator, c *core.Core) (*Simulation, error)

func (*Simulation) CharacterDetails

func (s *Simulation) CharacterDetails() []*model.Character

func (*Simulation) Run

func (s *Simulation) Run() (res stats.Result, err error)

TODO: remove defer in favour of every function actually returning error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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