|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.eclipse.lifegame.domain.Rule
|
+--org.eclipse.lifegame.domain.BirthRule
|
+--org.eclipse.lifegame.domain.TwoDimensionalBirthRule
| Constructor Summary | |
TwoDimensionalBirthRule()
|
|
| Method Summary | |
boolean |
doesApply(int[][] cells,
int i,
int j)
Returns whether or not rule appies for passed cells, and current cell |
int |
getCellValue()
Returns the value for rule |
| Methods inherited from class org.eclipse.lifegame.domain.Rule |
getName, setName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TwoDimensionalBirthRule()
| Method Detail |
public int getCellValue()
getCellValue in interface TwoDimensionalRule
public boolean doesApply(int[][] cells,
int i,
int j)
doesApply in interface TwoDimensionalRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||