|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.module.ladder.ladderimpl.LadderInfo
This class is used for storing information about ladders.
Field Summary | |
private Set |
breakers
Each element is a Stone which is a ladder breaker. |
private boolean |
isCaught
Indicates if the ladder or potential ladder works or not. |
private MoveDescriptorForest |
sequences
Best play for both ladders and potential ladders. |
private Set |
threats
Each element is a Stone which is a threat to capture the ladder. |
Constructor Summary | |
protected |
LadderInfo(MoveDescriptorForest mdf)
|
Method Summary | |
protected void |
addLadderBreaker(Stone st)
|
protected void |
addLadderBreakers(Set s)
|
protected void |
addLadderThreat(Stone st)
|
protected void |
addLadderThreats(Set s)
|
Object |
clone()
|
protected Set |
getLadderBreakers()
|
protected Set |
getLadderThreats()
|
protected MoveDescriptorForest |
getSequences()
|
protected boolean |
isCaught()
|
protected void |
setIsCaught(boolean flag)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private MoveDescriptorForest sequences
private boolean isCaught
private Set breakers
private Set threats
Constructor Detail |
protected LadderInfo(MoveDescriptorForest mdf)
Method Detail |
protected MoveDescriptorForest getSequences()
protected boolean isCaught()
protected Set getLadderBreakers()
protected Set getLadderThreats()
protected void setIsCaught(boolean flag)
protected void addLadderBreaker(Stone st)
protected void addLadderThreat(Stone st)
protected void addLadderBreakers(Set s)
protected void addLadderThreats(Set s)
public Object clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |