package
3.0.1
Repository: https://github.com/lugobots/lugo4go.git
Documentation: pkg.go.dev

# Constants

BallDeceleration is the deceleration rate of the ball speed by frame.
BallMaxSpeed is the max speed of the ball by frame.
BallMinSpeed is the minimal speed of the ball by frame.
BallSize size of the element ball.
40 / 20 fps = 2 seconds.
BaseUnit is used to increase the integer units scale and improve the precision when the integer numbers come from float calculations.
FieldHeight is the height of the field (horizontal view) This value must be an odd number because we cant to a coordinate at the perfect middle of the field e.g.
FieldNeutralCenter is the radius of the neutral circle in the center of the field.
FieldWidth is the width of the field (horizontal view) This value must be an odd number because the central coordinate must be neutral, and we want to have the same number of coordinates on both sides.
GoalKeeperJumpDuration is the number of turns that the jump takes.
GoalKeeperJumpSpeed is the max speed of the goalkeeper during the jump.
GoalkeeperNumber defines the goalkeeper number.
GoalkeeperSize is the width of the goalkeeper.
GoalMaxY is the coordinate Y of the upper pole of the goals.
GoalMinY is the coordinate Y of the lower pole of the goals.
GoalWidth is the goal width.
GoalZoneRange is the minimal distance that a player can stay from the opponent goal.
MaxPlayers max number of players in a team by mach.
MaxXCoordinate help us to remember that we should not use the field width to check the field boundaries! The field dimensions counts the total number of coordinates, but the coordinates are zero-indexed.
MaxYCoordinate help us to remember that we should not use the field width to check the field boundaries! The field dimensions counts the total number of coordinates, but the coordinates are zero-indexed.
MinPlayers min number of players in a team by mach, if a team gets to have less to this number, the team loses by W.O.
PlayerMaxSpeed is the max speed that a play may move by frame.
PlayerReconnectionWaitTime is a penalty time imposed to the player that needs to reconnect during the match.
PlayerSize is the size of each player.
ShotClockTime Number of turns each teams has on attack before losing the ball possession.