virtual public void Shoot(Vector position, Vector direction, Universe.Map map) { if (delayCounter == delay && direction.Length > 0) { Launch(data.GetBullet(position, direction, map)); delayCounter = 0; } }
void StartBombing(Launcher launcher) { isBombing = true; for (int i = 0; i < 20; ++i) { launcher.Launch(shrapnelsData.GetBullet(body.position, Vector.FromAngle(2 * Math.PI * (i / 20.0)), map)); } }