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 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)
Click to show internal directories.
Click to hide internal directories.