예제 #1
0
    //Set default values in Constructor
    public ShipHullData()
    {
        Name           = "";
        ShipObject     = "";
        SlotLayout     = "";
        HardPoints     = "";
        Icon           = "";
        MaxTurnTilt    = 30.0f;
        ExplosionScale = 1.0f;

        BaseCommandPoints   = 1;
        BaseCrew            = 100;
        BaseFTL             = 3f;
        BaseSupply          = 20f;
        BaseFuel            = 100f;
        BaseSensor          = 20f;
        BaseLongRangeSensor = 25f;
        BaseAdvancedSensor  = 0f;
        BaseResearch        = 0f;
        BaseRepair          = 0.5f;
        BaseHealthPerSlot   = 5f;
        BaseArmorPerSlot    = 2f;

        ModuleLimitFore      = ModuleLimitType.NoEngines;
        ModuleLimitAft       = ModuleLimitType.AllowAll;
        ModuleLimitPort      = ModuleLimitType.NoEngines;
        ModuleLimitStarboard = ModuleLimitType.NoEngines;
        ModuleLimitCenter    = ModuleLimitType.NoWeaponsOrEngines;
    }
예제 #2
0
 public StationHullData()
 {
     Name                = "";
     StationObject       = "";
     SlotLayout          = "";
     HardPoints          = "";
     Icon                = "";
     BaseCrew            = 100;
     BaseSensor          = 20f;
     BaseLongRangeSensor = 25f;
     BaseAdvancedSensor  = 0f;
     BaseResearch        = 0f;
     BaseTrading         = 0f;
     BaseMining          = 0f;
     BaseRepair          = 0.5f;
     BaseHealthPerSlot   = 5f;
     BaseArmorPerSlot    = 2f;
     ExperienceKillValue = 1;
     ModuleLimitations   = ModuleLimitType.NoEngines;
 }
예제 #3
0
 protected bool CheckHullModuleAllow(ModuleLimitType limit, ModuleCategory category)
 {
     if (category == ModuleCategory.Systems)
     {
         return(true);
     }
     if (category == ModuleCategory.Engines)
     {
         if (limit == ModuleLimitType.NoEngines || limit == ModuleLimitType.NoWeaponsOrEngines)
         {
             return(false);
         }
     }
     if (category == ModuleCategory.Weapons)
     {
         if (limit == ModuleLimitType.NoWeapons || limit == ModuleLimitType.NoWeaponsOrEngines)
         {
             return(false);
         }
     }
     return(true);
 }