public tank(int newx, int newy) { speed = 1; weaponcount = WEAPONSTART; health = 100; // 100 => full x = newx; y = newy; direction = (edir)1; }
public projectile(int newdir, int newx, int newy) { direction = (edir)newdir; x = newx; y = newy; }