ru.sstu.renju.core
Enum Row.Direction

java.lang.Object
  extended by java.lang.Enum<Row.Direction>
      extended by ru.sstu.renju.core.Row.Direction
All Implemented Interfaces:
Serializable, Comparable<Row.Direction>
Enclosing class:
Row

public static enum Row.Direction
extends Enum<Row.Direction>

Direction enumeration represents row directions.

Since:
Renju 1.0
Author:
denis_murashev

Enum Constant Summary
DOWN
          Down.
DOWN_RIGHT
          Down and right.
RIGHT
          Right.
UP_RIGHT
          Up and right.
 
Method Summary
 int getDx()
           
 int getDy()
           
static Row.Direction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Row.Direction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOWN

public static final Row.Direction DOWN
Down.


DOWN_RIGHT

public static final Row.Direction DOWN_RIGHT
Down and right.


RIGHT

public static final Row.Direction RIGHT
Right.


UP_RIGHT

public static final Row.Direction UP_RIGHT
Up and right.

Method Detail

values

public static Row.Direction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Row.Direction c : Row.Direction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Row.Direction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getDx

public int getDx()
Returns:
the dx

getDy

public int getDy()
Returns:
the dy


Copyright © 2013 TFI branch of Engels Instutute of Technology. All Rights Reserved.