Esempio n. 1
0
 /// <summary>
 /// This constructor is only for serialisation.
 /// </summary>
 public Rocket()
 {
     _impactDamage = 100;
     _thruster = new Thruster();
     _thrustDuration = 2;
     _fallTurnSpeed = 5;
     _targetTurnSpeed = 5;
     _findTargetRange = 800;
 }
Esempio n. 2
0
 /// <summary>
 /// This constructor is only for serialisation.
 /// </summary>
 public Ship()
 {
     _thruster = new Thruster();
     _aerodynamics = AerodynamicsType.ThrustTowardsHeading;
     _turnSpeed = 3;
     _rollMax = (float)MathHelper.PiOver4;
     _rollSpeed = (float)(MathHelper.TwoPi / 2.0);
     _weapon1TypeName = (CanonicalString)"dummyweapon";
     _extraDeviceChargeMax = 5000;
     _extraDeviceChargeSpeed = 500;
     _weapon2ChargeMax = 5000;
     _weapon2ChargeSpeed = 500;
     _birthAlpha = new Curve();
     _birthAlpha.PreLoop = CurveLoopType.Constant;
     _birthAlpha.PostLoop = CurveLoopType.Constant;
     for (float age = 0; age + 0.2f < 2; age += 0.4f)
     {
         _birthAlpha.Keys.Add(new CurveKey(age, 0.2f));
         _birthAlpha.Keys.Add(new CurveKey(age + 0.2f, 0.8f));
     }
     _birthAlpha.Keys.Add(new CurveKey(2, 1));
     _birthAlpha.ComputeTangents(CurveTangent.Flat);
     _coughEngine = new CoughEngine();
 }
Esempio n. 3
0
 /// <summary>
 /// This constructor is only for serialisation.
 /// </summary>
 public Bullet()
 {
     _impactDamage = 10;
     _impactHoleRadius = 10;
     _bulletModelNames = new[] { (CanonicalString)"dummymodel" };
     _backgroundTextureName = CanonicalString.Null;
     _backgroundScale = 1;
     _backgroundAlpha = 1;
     _isRotating = false;
     _rotationSpeed = 5;
     _thruster = new Thruster();
 }