public TankView(Tank tank, Random random)
 {
     this.tank = tank;
     this.movementTween = TweenFactory.Tween(0, 1, TimeSpan.FromSeconds(0.25), EasingFunction.Discrete);
     this.movementTween.Repeats = Repeat.Forever;
     this.movementTween.YoYos = true;
     this.turretView = new TurretView(tank);
     this.dustParticles = new DustParticleSystem(random);
     this.smokeParticles = new MuzzleFireParticleSystem(random);
 }
        private void TryToTargetEnemny(Tank tank)
        {
            Vector2 delta = tank.Position - this.Position;
            delta.Normalize();
            delta *= 1;

            this.world.RayCast(this.OnTargetingProbeReturned, this.Position, tank.Position + delta);
        }
 public TurretView(Tank tank)
 {
     this.tank = tank;
 }