Enemy angefangen, HP zu CollidableEntity geaddet

This commit is contained in:
lubiana 2014-10-28 13:44:09 +01:00
parent 033c45408e
commit ac97f95ca8
2 changed files with 30 additions and 0 deletions

View File

@ -14,6 +14,16 @@ public abstract class CollidableEntity extends Entity {
*/ */
protected int width; protected int width;
protected int height; protected int height;
/**
* Health Points of the Object
*/
protected int heakthPoints;
/**
* Shieldpoints of the Object
*/
protected int shieldPoints;
public int getX() { public int getX() {

View File

@ -0,0 +1,20 @@
package de.teamteamteam.spacescooter.entity;
public abstract class Enemy extends CollidableEntity {
protected String name;
protected boolean willShoot;
@Override
public void update() {
if(willShoot)
this.shoot();
}
protected abstract void shoot();
}