ru.sstu.renju.core
Class Row

java.lang.Object
  extended by 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.
 
Constructor Summary
Row(int x, int y, Row.Direction direction)
          Initializes row.
 
Method Summary
 Row.Direction getDirection()
           
 int getX()
           
 int getY()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE
Row size to win the game.

See Also:
Constant Field Values
Constructor Detail

Row

public Row(int x,
           int y,
           Row.Direction direction)
Initializes row.

Parameters:
x - x of start cell
y - y of start cell
direction - direction
Method Detail

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.