ru.sstu.renju.core
Class Row
java.lang.Object
ru.sstu.renju.core.Row
public final class Row
- extends Object
Row class represents row of 5 cells.
- Since:
- Renju 1.0
- Author:
- denis_murashev
|
Nested Class Summary |
static class |
Row.Direction
Direction enumeration represents row directions. |
|
Field Summary |
static int |
SIZE
Row size to win the game. |
SIZE
public static final int SIZE
- Row size to win the game.
- See Also:
- Constant Field Values
Row
public Row(int x,
int y,
Row.Direction direction)
- Initializes row.
- Parameters:
x - x of start celly - y of start celldirection - direction
getX
public int getX()
- Returns:
- the x
getY
public int getY()
- Returns:
- the y
getDirection
public Row.Direction getDirection()
- Returns:
- the direction
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 TFI branch of Engels Instutute of Technology. All Rights Reserved.