gegner ballern nun rot
This commit is contained in:
parent
46efd1e04e
commit
3df49e2be6
@ -76,4 +76,21 @@ public abstract class ShootingEntity extends LivingEntity {
|
|||||||
public int getDamageValue(){
|
public int getDamageValue(){
|
||||||
return this.damageValue;
|
return this.damageValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected int getShootSpawnX(){
|
||||||
|
return this.shootSpawnX;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getShootSpawnY(){
|
||||||
|
return this.shootSpawnY;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getShootDirection(){
|
||||||
|
return this.shootDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getShootSpeed(){
|
||||||
|
return this.shootSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import java.util.Random;
|
|||||||
|
|
||||||
import de.teamteamteam.spacescooter.entity.ShootingEntity;
|
import de.teamteamteam.spacescooter.entity.ShootingEntity;
|
||||||
import de.teamteamteam.spacescooter.entity.shot.Shot;
|
import de.teamteamteam.spacescooter.entity.shot.Shot;
|
||||||
|
import de.teamteamteam.spacescooter.entity.shot.SingleRedShot;
|
||||||
|
|
||||||
public abstract class Enemy extends ShootingEntity {
|
public abstract class Enemy extends ShootingEntity {
|
||||||
|
|
||||||
@ -23,5 +24,10 @@ public abstract class Enemy extends ShootingEntity {
|
|||||||
this.shoot();
|
this.shoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void createShot() {
|
||||||
|
new SingleRedShot(super.getX() + super.getShootSpawnX(), super.getY() + super.getShootSpawnY(), super.getShootDirection(), super.getShootSpeed(), super.getDamageValue());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user