public FuelCarrier(string modelName, GameState state) : base(modelName, state) { ForwardDirection = 0.0f; MaxRange = GameConstants.MaxRange; PrimaryCannon = new MountedGun(state, 100); }
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); }