robocode.control
Class BattlefieldSpecification
- Serializable
public class BattlefieldSpecification
- Mathew A. Nelson (original)
- Flemming N. Larsen (contributor)
int | getHeight() - Returns the height of this battlefield.
|
int | getWidth() - Returns the width of this battlefield.
|
BattlefieldSpecification
public BattlefieldSpecification()
Creates a standard 800 x 600 battlefield.
BattlefieldSpecification
public BattlefieldSpecification(int width,
int height)
Creates a battlefield of the specified width and height.
width
- the width of the battlefield, where 400 >= width <325000.height
- the height of the battlefield, where 400 >= height <325000.
getHeight
public int getHeight()
Returns the height of this battlefield.
- the height of this battlefield.
getWidth
public int getWidth()
Returns the width of this battlefield.
- the width of this battlefield.