|
|||||||||
| 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, NO_TEAM, regions, shape, velocity |
| Constructor Summary | |
|---|---|
Terrain()
Default constructor. |
|
Terrain(double w,
double h)
Constructor, with position defaulted to (0, 0). |
|
Terrain(double x,
double y,
double w,
double h)
Constructor. |
|
| Method Summary | |
|---|---|
XYPair |
move(Environment env)
Ask the object where it wants to move (which would be, quite simply, nowhere). |
| Methods inherited from class group1.model.gameobject.GameObj |
|---|
addRegion, addRegion, getAcceleration, getAccelerationX, getAccelerationY, getHeight, getID, getNumRegions, getPosition, getPositionX, getPositionY, getRectangle, getRegion, getTeam, getVelocity, getVelocityX, getVelocityY, getWidth, intersectRegions, isMovable, makeRegions, makeSolid, setAcceleration, setAcceleration, setAccelerationX, setAccelerationY, setID, setPosition, setPosition, setPositionX, setPositionY, setRectangle, setSize, setTeam, setVelocity, setVelocity, setVelocityX, setVelocityY, stopHorizontal, stopVertical |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Terrain()
public Terrain(double x,
double y,
double w,
double h)
x - The x-position.y - The y-position.w - The width.h - The height.
public Terrain(double w,
double h)
w - The width.h - The height.| 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 | ||||||||