コード例 #1
0
 public FuelCarrier(string modelName, GameState state)
     : base(modelName, state)
 {
     ForwardDirection = 0.0f;
     MaxRange = GameConstants.MaxRange;
     PrimaryCannon = new MountedGun(state, 100);
 }
コード例 #2
0
ファイル: Barrier.cs プロジェクト: intrawebs/Fuel-Cell-WP7
 public Barrier(string modelName, GameState state, BarrierType type)
     : base(modelName, state)
 {
     BarrierType = type;
     double rateOfFire = 0;
     switch (BarrierType)
     {
         case BarrierType.Cube:
             rateOfFire = 650;
             break;
         case BarrierType.Cylinder:
             rateOfFire = 100;
             break;
         case BarrierType.Pryamid:
             rateOfFire = 650;
             break;
         default:
             break;
     }
     Cannon = new MountedGun(state, rateOfFire);
 }