public StarSystem(StarSystemId id, int x, int y, Size size, TechLevel techLevel, PoliticalSystemType politicalSystemType, SystemPressure systemPressure, SpecialResource specialResource) { _id = id; _x = x; _y = y; _size = size; _techLevel = techLevel; _politicalSystemType = politicalSystemType; _systemPressure = systemPressure; _specialResource = specialResource; InitializeTradeItems(); }
public StarSystem(Hashtable hash) : base(hash) { _id = (StarSystemId)GetValueFromHash(hash, "_id", _id); _x = (int)GetValueFromHash(hash, "_x", _x); _y = (int)GetValueFromHash(hash, "_y", _y); _size = (Size)GetValueFromHash(hash, "_size", _size); _techLevel = (TechLevel)GetValueFromHash(hash, "_techLevel", _techLevel); _politicalSystemType = (PoliticalSystemType)GetValueFromHash(hash, "_politicalSystemType", _politicalSystemType); _systemPressure = (SystemPressure)GetValueFromHash(hash, "_systemPressure", _systemPressure); _specialResource = (SpecialResource)GetValueFromHash(hash, "_specialResource", _specialResource); _specialEventType = (SpecialEventType)GetValueFromHash(hash, "_specialEventType", _specialEventType); _tradeItems = (int[])GetValueFromHash(hash, "_tradeItems", _tradeItems); _countDown = (int)GetValueFromHash(hash, "_countDown", _countDown); _visited = (bool)GetValueFromHash(hash, "_visited", _visited); _shipyardId = (ShipyardId)GetValueFromHash(hash, "_shipyardId", _shipyardId); }
private TradeItemType _wanted; // Tradeitem requested in particular in this type of government #endregion #region Methods public PoliticalSystem(PoliticalSystemType type, int reactionIllegal, Activity activityPolice, Activity activityPirates, Activity activityTraders, TechLevel minTechLevel, TechLevel maxTechLevel, int bribeLevel, bool drugsOk, bool firearmsOk, TradeItemType wanted) { _type = type; _reactionIllegal = reactionIllegal; _activityPolice = activityPolice; _activityPirates = activityPirates; _activityTraders = activityTraders; _minTech = minTechLevel; _maxTech = maxTechLevel; _bribeLevel = bribeLevel; _drugsOk = drugsOk; _firearmsOk = firearmsOk; _wanted = wanted; }
public PoliticalSystem(PoliticalSystemType type, int reactionIllegal, Activity activityPolice, Activity activityPirates, Activity activityTraders, TechLevel minTechLevel, TechLevel maxTechLevel, int bribeLevel, bool drugsOk, bool firearmsOk, TradeItemType wanted) { Type = type; ReactionIllegal = reactionIllegal; ActivityPolice = activityPolice; ActivityPirates = activityPirates; ActivityTraders = activityTraders; MinimumTechLevel = minTechLevel; MaximumTechLevel = maxTechLevel; BribeLevel = bribeLevel; DrugsOk = drugsOk; FirearmsOk = firearmsOk; Wanted = wanted; }