|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.util.Rules
This class represents the rule set to be used.
Field Summary | |
static Rules |
AGA
A Rules object representing the AGA rule set. |
private static short |
AGA_FLAG
Use AGA rules. |
static Rules |
CHINESE
A Rules object representing the Chinese rule set. |
private static short |
CHINESE_FLAG
Use Chinese rules. |
static Rules |
ING
A Rules object representing the ING rule set. |
private static short |
ING_FLAG
Use ING rules. |
static Rules |
JAPANESE
A Rules object representing the Japanese rule set. |
private static short |
JAPANESE_FLAG
Use Japanese rules. |
private short |
rules
This has the value of one of the constants defining a rule set. |
Constructor Summary | |
protected |
Rules(short type)
Select the rule set to use. |
Method Summary | |
boolean |
equals(Object o)
Determine if two objects are equal. |
static Rules |
getDefault()
Get the default rules set. |
float |
getKomi(Handicap h)
|
int |
hashCode()
Return a hashcode for this object. |
String |
toString()
Return a String representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final short JAPANESE_FLAG
private static final short CHINESE_FLAG
private static final short AGA_FLAG
private static final short ING_FLAG
public static final Rules JAPANESE
public static final Rules CHINESE
public static final Rules AGA
public static final Rules ING
private short rules
Constructor Detail |
protected Rules(short type) throws IllegalArgumentException
type
- The rules to use.
IllegalArgumentException
- Thrown if
the type parameter is out of range.Method Detail |
public static Rules getDefault()
public float getKomi(Handicap h)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
o
- The object to be compared with this one.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |