2007-03-29 23:21:00 +00:00
|
|
|
package ei.game.scene;
|
|
|
|
|
|
|
|
|
|
public abstract class GameEntity{
|
|
|
|
|
private int life;
|
|
|
|
|
|
|
|
|
|
public GameEntity(int l){
|
|
|
|
|
life = l;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the life
|
|
|
|
|
*
|
|
|
|
|
* @return The life
|
|
|
|
|
*/
|
|
|
|
|
public int getLife(){
|
|
|
|
|
return life;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the life
|
|
|
|
|
* @param l The life to set to
|
|
|
|
|
*/
|
|
|
|
|
public void setLife(int l){
|
|
|
|
|
life = l;
|
|
|
|
|
}
|
2007-04-04 18:07:00 +00:00
|
|
|
public void move(int x, int y) {
|
2007-04-04 18:05:11 +00:00
|
|
|
|
|
|
|
|
}
|
2007-03-29 23:21:00 +00:00
|
|
|
}
|