|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrules.AbRuleBean
rules.DownRuleBean
public class DownRuleBean
Created on November 3, 2006, 7:19 PM
Implements the rule to validate and flip pieces in a down direction.
| Constructor Summary | |
|---|---|
DownRuleBean()
Creates a new instance of DownRuleBean |
|
| Method Summary | |
|---|---|
void |
flipPieces(OthelloCell[][] cells,
java.awt.Point cp)
Whether to flip the pieces or not. |
boolean |
validate(OthelloCell[][] cells,
java.awt.Point cp)
Validates the piece is a valid move. |
| Methods inherited from class rules.AbRuleBean |
|---|
addPropertyChangeListener, getPropertySupport, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownRuleBean()
| Method Detail |
|---|
public boolean validate(OthelloCell[][] cells,
java.awt.Point cp)
validate in class AbRuleBeancells - The game board to be validated against.cp - The point to be validated.
public void flipPieces(OthelloCell[][] cells,
java.awt.Point cp)
flipPieces in class AbRuleBeancells - The game board to check.cp - The point of origin for possible flipping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||