|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.ua.gboard.Gelem
pt.ua.gboard.OneColorGelem
pt.ua.gboard.games.PacmanGelem
public class PacmanGelem
Pacman gelem.
This class follows DbC(tm) methodology. Where possible, contracts are implement with JML and native's Java assert.
Constructor Summary | |
---|---|
PacmanGelem(java.awt.Color color,
double cellOccupation)
Constructs a new PacmanGelem (1x1 cells). |
|
PacmanGelem(java.awt.Color color,
double cellOccupation,
int numberOfLines,
int numberOfColumns)
Constructs a new PacmanGelem. |
Method Summary |
---|
Methods inherited from class pt.ua.gboard.OneColorGelem |
---|
draw, erase |
Methods inherited from class pt.ua.gboard.Gelem |
---|
height, intersects, isMutable, mutable, numberOfColumns, numberOfLines, width, x, y |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacmanGelem(java.awt.Color color, double cellOccupation)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0
color
- gelem's colorcellOccupation
- total cell's occupation (%)public PacmanGelem(java.awt.Color color, double cellOccupation, int numberOfLines, int numberOfColumns)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0 && numberOfLines >= 1 && numberOfColumns >= 1
color
- gelem's colorcellOccupation
- total cell's occupation (%)numberOfLines
- number of linesnumberOfColumns
- number of columns
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |