skirmish

package
v0.0.0-...-8b058bf Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kind

func Kind() *state.Kind

Types

type Location

type Location struct {
	X int
	Y int
}

type Result

type Result struct {
	Activation    string
	InflictHits   int    `mapstructure:"inflict_hits"`
	ReceiveHits   int    `mapstructure:"receive_hits"`
	ActorResolve  string `mapstructure:"actor_resolve"`
	TargetResolve string `mapstructure:"target_resolve"`
}

type Skirmish

type Skirmish struct {
	Scenario  string
	Attackers []string
	Defenders []string
	Companies []data.Company
	Updates   string
}

func (Skirmish) Initialize

func (skirmish Skirmish) Initialize() *Skirmish

type TestResult

type TestResult string
const (
	Pass TestResult = "pass"
	Fail TestResult = "fail"
)

func ValidTestResults

func ValidTestResults() []TestResult

func (TestResult) Passed

func (result TestResult) Passed() (passed bool, err error)

type Updates

type Updates struct {
	Company       string
	Type          string
	Subtype       string
	Actor         uuid.UUID
	Target        uuid.UUID
	StartLocation Location `mapstructure:"start_location"`
	EndLocation   Location `mapstructure:"end_location"`
	Result        string
}

Jump to

Keyboard shortcuts

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