public void specialShoot(Coordinate explodeCoordinate) { if (alive && hasItem()) // no time limit { if (item.getType().equals("nuke")) { world.addProjectile(new Nuke(this, explodeCoordinate)); item = null; } else if (item.getType().equals("starburst")) { world.addProjectile(new Starburst(this, explodeCoordinate, 2)); item = null; } else if (item.getType().equals("laser")) { world.addProjectile(new Laser(this, explodeCoordinate)); item = null; } /*else if(item.getType().equals("mine")) { world.addProjectile(new StarburstProjectile(this,explodeCoordinate,2)); item=null; }*/ else { System.out.println("unrecognised item shot: deleting..."); item = null; } } // ,color)); // System.out.println("tank shot"); }