|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--uwcse.sim.OilThing
|
+--uwcse.sim.Tanker
A tanker floats through the environment, leaking oil.
| Fields inherited from class uwcse.sim.OilThing |
alive, rand, world, x, y |
| Constructor Summary | |
Tanker(WorldModel wm,
int x,
int y,
int bpc)
Create a new Tanker that spills the given number of blobs per cycle, and at the given x y location |
|
| Method Summary | |
void |
action()
Always move to the right one pixel. |
void |
displayOn(uwcse.graphics.GWindow g)
A tanker displays itself as a pointy red rectangle |
| Methods inherited from class uwcse.sim.OilThing |
checkNeighbors, getX, getY, interact, isAlive, kill, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Tanker(WorldModel wm,
int x,
int y,
int bpc)
| Method Detail |
public void action()
action in class OilThingpublic void displayOn(uwcse.graphics.GWindow g)
displayOn in class OilThing
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||