public void shootWarp() { if ("V".equals(Greenfoot.getKey())) { if( ((((Space) getWorld()).WarpGun )== 100 ) ){ Enterprise_WarpGun ew = new Enterprise_WarpGun(); getWorld().addObject(ew, getX(), getY()); } (((Space) getWorld()).WarpGun) = 0; } }
public void shootWarp() { if ("V".equals(Greenfoot.getKey())) { if( ((((Space) getWorld()).WarpGun )== 100 ) ){ Enterprise_WarpGun ew = new Enterprise_WarpGun(); getWorld().addObject(ew, getX(), getY()); } (((Space) getWorld()).WarpGun) = 0; } }