Skip to main content

Class: Bot

Hierarchy

Constructors

constructor

new Bot(options)

Parameters

NameType
optionsBotOptions

Overrides

Player.constructor

Other Properties

actionDelay

actionDelay: number | () => number


currentThought

currentThought: ChosenBotNeuronResult<any>


currentThoughtTimer

currentThoughtTimer: any


intelligence

intelligence: number


isBot

isBot: boolean = true


isTapDragging

isTapDragging: boolean = false

Is player currently using tap events to play a drag action? (accessibility dragging fallback)

Inherited from

Player.isTapDragging


Player Properties

clientID

clientID: string

Inherited from

Player.clientID


hasEntityInMainFocus

Readonly hasEntityInMainFocus: boolean = false

Automatically applied after any entity this player owns has their ownersMainFocus set to true.

Don't change manually.

Inherited from

Player.hasEntityInMainFocus


name

name: string

Inherited from

Player.name


score

score: number = 0

Inherited from

Player.score


timeLeft

timeLeft: number = -1

Utilize this in a time-sensitive game

Inherited from

Player.timeLeft