|
Game of Life 1.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bitstorm.gameoflife.Shape
Shape contains data of one (predefined) shape.
Field Summary | |
private java.lang.String |
name
|
private int[][] |
shape
|
Constructor Summary | |
Shape(java.lang.String name,
int[][] shape)
Constructa a Shape. |
Method Summary | |
java.util.Enumeration |
getCells()
Get shape data. |
java.awt.Dimension |
getDimension()
Get dimension of shape. |
java.lang.String |
getName()
Get name of shape. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final java.lang.String name
private final int[][] shape
Constructor Detail |
public Shape(java.lang.String name, int[][] shape)
name
- name of shapeshape
- shape dataMethod Detail |
public java.awt.Dimension getDimension()
public java.lang.String getName()
public java.util.Enumeration getCells()
public java.lang.String toString()
Object.toString()
|
Game of Life 1.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This API descibes the Game of Life program, written by Edwin Martin. The source code is available online too.
Copyright 1996-2004 Edwin Martin <edwin@bitstorm.org>.