예제 #1
0
    public void ChangeOwner(Empire newOwner)
    {
        empire.RemoveColony(this);
        newOwner.AddColony(this);
        EmpireLogEntry log  = new EmpireLogEntry(LogCategories.MILITARY, 1, empire, "COLONY LOST", string.Format("{0} on {1} has fallen to the forces of {2}.", ColonyName, planet.PlanetName, newOwner.EmpireName));
        EmpireLogEntry log2 = new EmpireLogEntry(LogCategories.MILITARY, 1, newOwner, "COLONY CONQUERED", string.Format("{0} on {1} has fallen to our forces.", ColonyName, planet.PlanetName));

        empire = newOwner;
    }
예제 #2
0
 public Colony(Empire emp, Race r, int pop, string nam = "Terra")
 {
     empire = emp;
     empire.AddColony(this);
     Population.Add(r, pop);
     ColonyName = nam;
     Empire.AllLocations.Add(this);
     StrategicClock.PhaseChange.AddListener(PhaseManager);
     EmpireLogEntry log = new EmpireLogEntry(LogCategories.DEFAULT, 3, empire, "COLONY ESTABLISHED", string.Format("{0} has been established on {1}.", ColonyName, planet.PlanetName));
 }