|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aigames.soccer.field.constructor.StandardConstructor
Field costructor for typical soccer game field.
Constructor Summary | |
StandardConstructor(int width,
int height,
int goal)
Class constructor. |
Method Summary | |
FieldPoint[][] |
getNewField()
Returns new blank game field. |
java.awt.Point |
getStartingPosition()
Returns starting position. |
boolean |
isGameOverPosition(java.awt.Point position)
Checks if given position is game over position. |
int |
isGoalPosition(java.awt.Point position)
Checks if given position is goal over position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardConstructor(int width, int height, int goal) throws java.lang.IllegalArgumentException
width
- Field width.height
- Field height.goal
- Goal height.
java.lang.IllegalArgumentException
- Thrown when field sizes are wrong.Method Detail |
public FieldPoint[][] getNewField()
Constructor
getNewField
in interface Constructor
Constructor.getNewField()
public java.awt.Point getStartingPosition()
Constructor
getStartingPosition
in interface Constructor
Constructor.getStartingPosition()
public boolean isGameOverPosition(java.awt.Point position)
Constructor
isGameOverPosition
in interface Constructor
position
- Position to check.
Constructor.isGameOverPosition(java.awt.Point)
public int isGoalPosition(java.awt.Point position)
Constructor
isGoalPosition
in interface Constructor
position
- Position to check.
Constructor.isGoalPosition(Point)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |