Exemple #1
0
 public void Remove_Colony_Location(ColonyLocation location)
 {
     if (Colony_Locations.Contains(location))
     {
         Colony_Locations.Remove(location);
     }
 }
Exemple #2
0
 public Expedition(ExpeditionGoal goal, ExpeditionLenght lenght, long building_id, Resource resource, float time_remaining, ExpeditionState state, ColonyLocation colony_data)
 {
     Goal           = goal;
     Lenght         = lenght;
     Building_Id    = building_id;
     Resource       = resource;
     Time_Remaining = time_remaining;
     State          = state;
     Colony_Data    = colony_data;
 }
Exemple #3
0
 public Expedition(long building_id, ColonyLocation location)
 {
     Goal           = ExpeditionGoal.Establish_Colony;
     Lenght         = ExpeditionLenght.Long;
     Building_Id    = building_id;
     Resource       = null;
     Time_Remaining = RNG.Instance.Next(ACTIVE_TIME[Goal][Lenght][0], ACTIVE_TIME[Goal][Lenght][1]);
     State          = ExpeditionState.Active;
     Colony_Data    = location;
 }
Exemple #4
0
 public Expedition(ExpeditionGoal goal, ExpeditionLenght lenght, long building_id, Resource resource)
 {
     Goal           = goal;
     Lenght         = lenght;
     Building_Id    = building_id;
     Resource       = resource;
     Time_Remaining = RNG.Instance.Next(ACTIVE_TIME[goal][lenght][0], ACTIVE_TIME[goal][lenght][1]);
     State          = ExpeditionState.Active;
     Colony_Data    = null;
 }
Exemple #5
0
 public void Show(Building harbor)
 {
     if (City.Instance.Colony_Locations.Count == 0)
     {
         MessageManager.Instance.Show_Message("You haven't found any colony locations yet");
         return;
     }
     Active      = true;
     this.harbor = harbor;
     location    = City.Instance.Colony_Locations[0];
     Update_GUI();
 }
Exemple #6
0
 public void Add_Colony_Location(ColonyLocation location)
 {
     if (Colony_Locations.Count < MAX_COLONY_LOCATIONS)
     {
         Colony_Locations.Add(location);
     }
     else
     {
         for (int i = 0; i < MAX_COLONY_LOCATIONS - 1; i++)
         {
             Colony_Locations[i + 1] = Colony_Locations[i];
         }
         Colony_Locations[0] = location;
     }
 }
Exemple #7
0
    public ForeignCity(ColonyLocation colony_data)
    {
        Id = current_id;
        current_id++;
        Name    = colony_data.Name;
        Opinion = 1.0f;
        Opinion_Resting_Point = -1.0f;
        Update_Opinion_Resting_Point();
        City_Type        = CityType.Colony;
        Trade_Route_Type = colony_data.Trade_Route_Type;

        Preferred_Imports  = colony_data.Preferred_Imports;
        Disliked_Imports   = colony_data.Disliked_Imports;
        Unaccepted_Imports = colony_data.Unaccepted_Imports;
        Exports            = colony_data.Exports;
        Cheap_Exports      = colony_data.Cheap_Exports;
        Expensive_Exports  = colony_data.Expensive_Exports;
    }
Exemple #8
0
 public void Location_Changed()
 {
     location = City.Instance.Colony_Locations[Location_Dropdown.value];
     Update_GUI();
 }