|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.molwind.model.BaseWorldEntity org.molwind.model.PlacedWorldEntity
public class PlacedWorldEntity
Provides a basic implementation for a placed world entity.
Field Summary | |
---|---|
protected double |
x
|
protected double |
y
|
Fields inherited from class org.molwind.model.BaseWorldEntity |
---|
relationships |
Constructor Summary | |
---|---|
protected |
PlacedWorldEntity()
|
Method Summary | |
---|---|
int |
getLayer()
Get the Layer value. |
double |
getX()
Returns the x-coordinate. |
double |
getY()
Returns the y-coordinate. |
void |
setDeltaX(double delta)
Move y for delta |
void |
setDeltaY(double delta)
Move y for delta |
void |
setLayer(int newLayer)
Set the Layer value. |
void |
setX(double newX)
Set the X value. |
void |
setY(double newY)
Set the Y value. |
Methods inherited from class org.molwind.model.BaseWorldEntity |
---|
addRelationship, existRelationship, getAttribute, getDimension, getRelationship, getRelationships, putAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double x
protected double y
Constructor Detail |
---|
protected PlacedWorldEntity()
Method Detail |
---|
public int getLayer()
public void setLayer(int newLayer)
newLayer
- The new Layer value.public double getX()
getX
in interface Place
public void setX(double newX)
newX
- the new X valuepublic double getY()
getY
in interface Place
public void setY(double newY)
newY
- the new Y valuepublic void setDeltaX(double delta)
delta-x
- public void setDeltaY(double delta)
delta-y
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |