fixed particel to be more object orjented

This commit is contained in:
Ziver Koc 2007-03-21 21:55:03 +00:00
parent 7c8dba70d1
commit e3f5017007
7 changed files with 191 additions and 137 deletions

View file

@ -27,6 +27,9 @@ public abstract class Entity {
/** The size of this entity in pixels*/
private Vector2f size;
/** The z layer of the screen*/
private int z = 0;
/**
* creates a new entity
*
@ -46,6 +49,24 @@ public abstract class Entity {
return name;
}
/**
* Get the z value of the entity
*
* @return The z value
*/
public int getZ() {
return z;
}
/**
* set the z value of the entity
*
* @param l The z value to set
*/
public void setZ(int l) {
z = l;
}
/**
* Get the Location of the entity
*