public class BattlefieldSpecification extends Object implements Serializable
BattleSpecification.BattleSpecification(int, BattlefieldSpecification, RobotSpecification[]),
BattleSpecification(int, long, double, BattlefieldSpecification, RobotSpecification[]),
BattleSpecification.getBattlefield(),
Serialized Form| Constructor and Description |
|---|
BattlefieldSpecification()
Creates a standard 800 x 600 battlefield.
|
BattlefieldSpecification(int width,
int height)
Creates a battlefield of the specified width and height.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the height of this battlefield.
|
int |
getWidth()
Returns the width of this battlefield.
|
public BattlefieldSpecification()
public BattlefieldSpecification(int width,
int height)
width - the width of the battlefield, where 400 <= width <= 5000.height - the height of the battlefield, where 400 <= height <= 5000.IllegalArgumentException - if the width or height < 400 or > 5000.Copyright © 2021 Robocode. All Rights Reserved.