public ThrustProxyMechanic(ThrustMechanic thrustMechanic)
 {
     if (thrustMechanic == null)
     {
         throw new ArgumentNullException(nameof(thrustMechanic));
     }
     ThrustMechanics = thrustMechanic;
 }
Ejemplo n.º 2
0
 public MoveRandomlyMechanic(
     ThrustMechanic thrustMechanics,
     RandomRotationMechanic randomRotationMechanic
     )
 {
     ThrustMechanics        = thrustMechanics ?? throw new ArgumentNullException(nameof(ThrustMechanics));
     RandomRotationMechanic = randomRotationMechanic ?? throw new ArgumentNullException(nameof(RandomRotationMechanic));
 }
Ejemplo n.º 3
0
 public ThrustProxyFuncFactorMechanic(ThrustMechanic thrustMechanic, Func <float> getFactor)
 {
     if (thrustMechanic == null)
     {
         throw new ArgumentNullException(nameof(thrustMechanic));
     }
     ThrustMechanics = thrustMechanic;
     if (getFactor == null)
     {
         throw new ArgumentNullException(nameof(getFactor));
     }
     GetFactor = getFactor;
 }
 public ThrustProxyImageDataMechanic(ThrustMechanic thrustMechanic)
 {
     ThrustMechanics = thrustMechanic ?? throw new ArgumentNullException(nameof(thrustMechanic));
 }