fixed particel to be more object orjented
This commit is contained in:
parent
7c8dba70d1
commit
e3f5017007
7 changed files with 191 additions and 137 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue