49 lines
886 B
Java
49 lines
886 B
Java
|
|
package ei.game.scene.map;
|
||
|
|
|
||
|
|
import ei.engine.math.Vector2f;
|
||
|
|
import ei.engine.math.Vector2i;
|
||
|
|
import ei.game.player.Player;
|
||
|
|
import ei.game.scene.SelectBox;
|
||
|
|
import ei.game.scene.units.Unit;
|
||
|
|
import ei.game.scene.weapons.Weapon;
|
||
|
|
|
||
|
|
public abstract class MapEntity extends Unit{
|
||
|
|
|
||
|
|
public MapEntity(int l, Vector2i pos, Player p) {
|
||
|
|
super(l, pos, p);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void update() {
|
||
|
|
if(getLife()<=0) {
|
||
|
|
removeUnit();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void move(int x, int y, boolean b) {}
|
||
|
|
|
||
|
|
public void setSelected(boolean b) {}
|
||
|
|
|
||
|
|
public void setMouseOver(boolean b) {}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public float getVelocity() {
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public Weapon getWeapon(Vector2f startPos) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void destroyed() {
|
||
|
|
// TODO Auto-generated method stub
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected SelectBox getSelection() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|