diff --git a/src/de/teamteamteam/spacescooter/entity/CollidableEntity.java b/src/de/teamteamteam/spacescooter/entity/CollidableEntity.java index 245f2ed..b0e6ea2 100644 --- a/src/de/teamteamteam/spacescooter/entity/CollidableEntity.java +++ b/src/de/teamteamteam/spacescooter/entity/CollidableEntity.java @@ -14,6 +14,16 @@ public abstract class CollidableEntity extends Entity { */ protected int width; protected int height; + + /** + * Health Points of the Object + */ + protected int heakthPoints; + + /** + * Shieldpoints of the Object + */ + protected int shieldPoints; public int getX() { diff --git a/src/de/teamteamteam/spacescooter/entity/Enemy.java b/src/de/teamteamteam/spacescooter/entity/Enemy.java new file mode 100644 index 0000000..4a25042 --- /dev/null +++ b/src/de/teamteamteam/spacescooter/entity/Enemy.java @@ -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(); + + + + +} +