public void update() { if (this.target.isValied) { this.moveToTarget(); } else { this.findOtherTarget(); target.close(); target = null; } }
public void setTarget(Ship ship) { this.target = new TezValider <Ship>(ship.valider); }