Removed static things, fixed astar bugs. only thing left is bomber attacking ronge
This commit is contained in:
parent
91c3e77465
commit
526ce82d40
33 changed files with 293 additions and 196 deletions
|
|
@ -2,6 +2,7 @@ package ei.game.scene.weapons;
|
|||
|
||||
import ei.engine.effects.Particles;
|
||||
import ei.engine.math.Vector2f;
|
||||
import ei.game.gamestate.InGameState;
|
||||
import ei.game.network.entities.NetworkWepon;
|
||||
|
||||
/**
|
||||
|
|
@ -12,8 +13,8 @@ import ei.game.network.entities.NetworkWepon;
|
|||
public class Explotion extends NetworkWepon{
|
||||
private Particles part;
|
||||
|
||||
public Explotion(Vector2f startPos) {
|
||||
super(startPos);
|
||||
public Explotion(Vector2f startPos, InGameState inGameState) {
|
||||
super(startPos, inGameState);
|
||||
setVelocity(4);
|
||||
setRange(Integer.MIN_VALUE);
|
||||
setDamage(Integer.MIN_VALUE);
|
||||
|
|
@ -41,7 +42,7 @@ public class Explotion extends NetworkWepon{
|
|||
|
||||
public void update() {
|
||||
if(part.isDead()) {
|
||||
WeaponHandler.getInstance().removeWeapon(this);
|
||||
getInGameState().getWeaponHandler().removeWeapon(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue