ByteBrawl - ByteBotValues - Builder Documentation

ByteBotValues

The ByteBotValues class contains important information about your robot and the enemy robot.

Fields

playerNum

int

Your player number (1 or 2).

direction

ByteBotValues.Direction

The direction your robot is facing.

enemyBotPos

Vector2

The position of the enemy bot.

hasTurnedThisTurn

boolean

Whether you have turned (changed direction) this turn.

hasUsedTurn

boolean

Whether you have done a significant action this turn (moving, attacking).

health

float

The health of your robot (Max 100).

name

String

The name of your robot.

position

Vector2

The position of your robot.

turnNum

int

The current turn number (1-20).