|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.gameobject.GameObj
group1.model.gameobject.terrain.Terrain
public class Terrain
A GameObj that represents unmoving, solid ground.
| Field Summary |
|---|
| Fields inherited from class group1.model.gameobject.GameObj |
|---|
acceleration, ENEMY_TEAM, GRID_SPACE_SIZE, id, isMovable, JEFF_TEAM, myState, NO_TEAM, regions, shape, THICKNESS, velocity |
| Constructor Summary | |
|---|---|
Terrain()
Default constructor. |
|
Terrain(double x,
double y,
double w,
double h,
PictureList p)
Constructor. |
|
Terrain(double w,
double h,
PictureList p)
Constructor, with position defaulted to (0, 0). |
|
| Method Summary | |
|---|---|
XYPair |
move(Environment env)
Ask the object where it wants to move (which would be, quite simply, nowhere). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Terrain()
public Terrain(double x,
double y,
double w,
double h,
PictureList p)
x - The x-position.y - The y-position.w - The width.h - The height.p - The picture list.
public Terrain(double w,
double h,
PictureList p)
w - The width.h - The height.p - The picture list.| Method Detail |
|---|
public XYPair move(Environment env)
move in class GameObjenv - The environment this object is in.
GameObj
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||