ai

package
v0.0.0-...-94f88f4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnemyAI

type EnemyAI struct {
}

type RaiderAI

type RaiderAI struct {
	MovedStacks map[*playerlib.UnitStack]bool
}

func MakeRaiderAI

func MakeRaiderAI() *RaiderAI

func (*RaiderAI) CreateUnits

func (raider *RaiderAI) CreateUnits(player *playerlib.Player) []playerlib.AIDecision

func (*RaiderAI) MoveStacks

func (raider *RaiderAI) MoveStacks(player *playerlib.Player, enemies []*playerlib.Player, pathfinder playerlib.PathFinder) []playerlib.AIDecision

func (*RaiderAI) NewTurn

func (raider *RaiderAI) NewTurn()

func (*RaiderAI) Update

func (raider *RaiderAI) Update(player *playerlib.Player, enemies []*playerlib.Player, pathfinder playerlib.PathFinder) []playerlib.AIDecision

Jump to

Keyboard shortcuts

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