org.molwind.model
Class PlacedWorldEntity

java.lang.Object
  extended by org.molwind.model.BaseWorldEntity
      extended by org.molwind.model.PlacedWorldEntity
All Implemented Interfaces:
Place, WorldEntity

public class PlacedWorldEntity
extends BaseWorldEntity
implements Place

Provides a basic implementation for a placed world entity.

Version:
1.0
Author:
Oliver Karch

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

x

protected double x

y

protected double y
Constructor Detail

PlacedWorldEntity

protected PlacedWorldEntity()
Method Detail

getLayer

public int getLayer()
Get the Layer value.

Returns:
the Layer value.

setLayer

public void setLayer(int newLayer)
Set the Layer value.

Parameters:
newLayer - The new Layer value.

getX

public double getX()
Returns the x-coordinate.

Specified by:
getX in interface Place
Returns:
x-coordinate

setX

public void setX(double newX)
Set the X value.

Parameters:
newX - the new X value

getY

public double getY()
Returns the y-coordinate.

Specified by:
getY in interface Place
Returns:
y-coordinate

setY

public void setY(double newY)
Set the Y value.

Parameters:
newY - the new Y value

setDeltaX

public void setDeltaX(double delta)
Move y for delta

Parameters:
delta-x -

setDeltaY

public void setDeltaY(double delta)
Move y for delta

Parameters:
delta-y -


Copyright © 2008-2010. All Rights Reserved.