ai

package
v0.0.0-...-5062497 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AverageChangeTargetAfter          = 300
	ChangeTargetAfterVariance         = 300
	AverageFireDelay                  = 60
	FireDelayVariance                 = 40
	GoCloserIfDistanceBiggerThan      = 40000
	TargetingAngleDifferenceThreshold = math.Pi / 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	HandleStateUpdate(space *state.Space, spaceship *state.Spaceship)
}

type BotManager

type BotManager struct {
	// contains filtered or unexported fields
}

func NewBotManager

func NewBotManager(dispatcher *events.EventDispatcher, space *state.Space, idManager *utils.IdManager,
	userNamesRegistry *utils.UserNamesRegistry) *BotManager

func (*BotManager) CreateBots

func (m *BotManager) CreateBots(numberOfBots int)

func (*BotManager) CreateNewBot

func (m *BotManager) CreateNewBot()

func (*BotManager) HandleObjectDestroyed

func (m *BotManager) HandleObjectDestroyed(event *events.ObjectDestroyed)

func (*BotManager) HandleTimeTick

func (m *BotManager) HandleTimeTick(event *events.TimeTick)

type CleverBot

type CleverBot struct {
	// contains filtered or unexported fields
}

func NewCleverBot

func NewCleverBot() *CleverBot

func (*CleverBot) HandleStateUpdate

func (b *CleverBot) HandleStateUpdate(space *state.Space, spaceship *state.Spaceship)

Jump to

Keyboard shortcuts

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