Exemplo n.º 1
0
        public virtual bool AcceptTorpedoType(Torpedo.TorpedoTypes torpType)
        {
            if (!AcceptedTorpedoTypes.Contains(torpType))
                return false;

            ChargingTankInfo tank = GetTankForType(torpType);
            if (tank != null)
                return tank.Tank.Contents.CurrentCapacity > 0;

            return true;
        }
Exemplo n.º 2
0
 public virtual ChargingTankInfo GetTankForType(Torpedo.TorpedoTypes torpType)
 {
     return ChargingTanks.Find(delegate(ChargingTankInfo i) { return i.TorpedoType == torpType; });
 }