|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrules.AbRuleBean
public abstract class AbRuleBean
Created on November 2, 2006, 9:49 PM
The abstract rule class.
This is the foundation class for the rules used to govern flipping pieces and validating moves.
| Constructor Summary | |
|---|---|
AbRuleBean()
Creates a new instance of AbRuleBean |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the property change listener. |
abstract void |
flipPieces(OthelloCell[][] cells,
java.awt.Point cp)
Whether to flip the pieces or not. |
java.beans.PropertyChangeSupport |
getPropertySupport()
Gets the property change support. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the property change listener. |
abstract boolean |
validate(OthelloCell[][] cells,
java.awt.Point cp)
Validates the piece is a valid move. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbRuleBean()
| Method Detail |
|---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The new listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to remove.public java.beans.PropertyChangeSupport getPropertySupport()
public abstract boolean validate(OthelloCell[][] cells,
java.awt.Point cp)
cells - The game board to be validated against.cp - The point to be validated.
public abstract void flipPieces(OthelloCell[][] cells,
java.awt.Point cp)
cells - 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 | |||||||||