public void addBecomeEmperorLegallyEntry(GameDate date, Person oldEmperor, Faction f) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["becomeEmperorLegally"], oldEmperor.Name, f.Name, f.Leader.Name), true); this.addPersonInGameBiography(f.Leader, date, String.Format(yearTableStrings["becomeEmperorLegally_p"], oldEmperor.Name, f.Name, f.Leader.Name)); }
public void addChildrenBornEntry(GameDate date, Person factionLeader, Person feizi, Person born) { Faction faction = factionLeader.BelongedFaction; if (faction == null) { if (factionLeader.BelongedArchitecture != null) { faction = factionLeader.BelongedArchitecture.BelongedFaction; } else if (factionLeader.BelongedTroop != null) { faction = factionLeader.BelongedTroop.BelongedFaction; } } if (faction != null) { this.addTableEntry(date, composeFactionList(faction), String.Format(yearTableStrings["childrenBorn"], faction.Name, factionLeader.Name, feizi.Name, (born.Sex ? "女" : "子"), born.Name), false); } else { this.addTableEntry(date, composeFactionList(faction), String.Format(yearTableStrings["childrenBornNoFaction"], factionLeader.Name, feizi.Name, (born.Sex ? "女" : "子"), born.Name), false); } }
public void addChangeKingEntry(GameDate date, Person p, Faction oldFaction, Person oldLeader) { this.addTableEntry(date, composeFactionList(oldFaction), String.Format(yearTableStrings["changeKing"], oldFaction.Name, p.Name, oldLeader.Name), true); this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["changeKing_p"], oldFaction.Name, p.Name, oldLeader.Name)); }
public void addAdvanceGuanjueEntry(GameDate date, Faction f, guanjuezhongleilei guanjue) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["advanceGuanjue"], f.Name, guanjue.Name), true); this.addPersonInGameBiography(f.Leader, date, String.Format(yearTableStrings["advanceGuanjue_p"], f.Name, guanjue.Name)); }
public void addKingDeathEntry(GameDate date, Person p, Faction oldFaction) { this.addTableEntry(date, composeFactionList(oldFaction), String.Format(yearTableStrings["kingDeath"], oldFaction.Name, p.Name, p.Age), true); this.addPersonInGameBiography(oldFaction.Leader, date, String.Format(yearTableStrings["kingDeath_p"], oldFaction.Name, p.Name, p.Age)); }
public YearTableEntry(int id, GameDate date, FactionList faction, string content, bool isGloballyKnown) { this.ID = id; this.date = new GameDate(date); this.content = content; this.factions = faction; this.isGloballyKnown = isGloballyKnown; }
//太守 public void addAppointMayorEntry(GameDate date, Person p, Person leader) { this.addTableEntry(date, composeFactionList(p.BelongedFaction), String.Format(yearTableStrings["appointMayor"], p.Name, p.BelongedArchitecture.Name, leader.Name), false); this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["appointMayor_p"], p.Name, p.BelongedArchitecture.Name, leader.Name)); //this.addPersonInGameBiography(leader, date, // String.Format(yearTableStrings["appointMayor_q"], p.Name, p.BelongedArchitecture.Name, leader.Name)); }
public void addAssassinateEntry(GameDate date, Person killer, Person killed) { this.addTableEntry(date, composeFactionList(killer.BelongedFaction, killed.BelongedFaction), String.Format(yearTableStrings["assassinate"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age), true); this.addPersonInGameBiography(killer, date, String.Format(yearTableStrings["assassinate_p"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age)); this.addPersonInGameBiography(killed, date, String.Format(yearTableStrings["assassinate_q"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age)); }
public void addOccupyEntry(GameDate date, Troop occupier, Architecture occupied) { if (occupied.BelongedFaction != null) { this.addTableEntry(date, composeFactionList(occupier.BelongedFaction, occupied.BelongedFaction), String.Format(yearTableStrings["occupy"], occupier.BelongedFaction.Name, occupier.DisplayName, occupied.BelongedFaction.Name, occupied.Name), true); this.addPersonInGameBiography(occupier.Leader, date, String.Format(yearTableStrings["occupy_p"], occupier.BelongedFaction.Name, occupier.DisplayName, occupied.BelongedFaction.Name, occupied.Name)); } else { this.addTableEntry(date, composeFactionList(occupier.BelongedFaction, occupied.BelongedFaction), String.Format(yearTableStrings["occupyEmpty"], occupier.BelongedFaction.Name, occupier.DisplayName, occupied.Name), true); this.addPersonInGameBiography(occupier.Leader, date, String.Format(yearTableStrings["occupyEmpty_p"], occupier.BelongedFaction.Name, occupier.DisplayName, occupied.Name)); } }
public void addFactionDestroyedEntry(GameDate date, Faction f) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["factionDestroyed"], f.Name), true); }
public void addExecuteEntry(GameDate date, Person executor, Person executed) { if (executed.BelongedFaction != null) { this.addTableEntry(date, composeFactionList(executor.BelongedFaction, executed.BelongedFaction), String.Format(yearTableStrings["execute"], executor.Name, executed.BelongedFaction.Name, executed.Name), true); } else { this.addTableEntry(date, composeFactionList(executor.BelongedFaction), String.Format(yearTableStrings["executeNoFaction"], executor.Name, executed.Name, ""), true); } }
public GameDate(GameDate d) { Year = d.Year; Month = d.Month; Day = d.Day; }
public void addTableEntry(int id, GameDate date, FactionList faction, string content, bool global) { this.Add(new YearTableEntry(id, date, faction, content, global) as GameObject); }
public void addOutOfPrincessEntry(GameDate date, Person p, Faction capturer) { this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["outOfPrincess_p"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name)); }
public void addOutOfPrincessByLeaderDeathEntry(GameDate date, Person p, Faction capturer) { this.addTableEntry(date, composeFactionList(p.BelongedFaction, capturer), String.Format(yearTableStrings["outOfPrincessByLeaderDeath"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name), false); this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["outOfPrincessByLeaderDeath_p"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name)); }
public void addKingDeathEntry(GameDate date, Person p, Faction oldFaction) { this.addTableEntry(date, composeFactionList(oldFaction), String.Format(yearTableStrings["kingDeath"], oldFaction.Name, p.Name), true); }
private void addTableEntry(GameDate date, FactionList faction, string content, bool global) { this.Add(new YearTableEntry(this.GetFreeGameObjectID(), date, faction, content, global) as GameObject); }
public void addSelfBecomeEmperorEntry(GameDate date, Faction f) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["selfBecomeEmperor"], f.Name, f.Leader.Name), true); }
public void addBecomeNoFactionEntry(GameDate date, Person p, Faction f) { this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["becomeNoFaction_p"], f.Name)); }
//立储 public void addSelectPrinceEntry(GameDate date, Person p, Person leader) { this.addTableEntry(date, composeFactionList(p.BelongedFaction), String.Format(yearTableStrings["selectPrince"], p.Name, p.BelongedArchitecture.Name, leader.Name), false); this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["selectPrince_p"], p.Name, leader.Name)); this.addPersonInGameBiography(leader, date, String.Format(yearTableStrings["selectPrince_q"], p.Name, leader.Name)); }
public void addPersonInGameBiography(Person p, GameDate date, string content) { p.PersonBiography.InGame = date.Year + "年" + date.Month + "月:" + content + '\n' + p.PersonBiography.InGame; }
public void addPersonDeathEntry(GameDate date, Person p) { String location = ""; if (p.BelongedArchitecture != null) { location = p.BelongedArchitecture.Name; } else if (p.BelongedTroop != null) { location = p.BelongedTroop.Name; } this.addTableEntry(date, composeFactionList(p.BelongedFaction), String.Format(yearTableStrings["personDeath"], p.Name, location, p.Age), true); this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["personDeath_p"], p.Name, location, p.Age)); }
public void addFactionTechniqueCompletedEntry(GameDate date, Faction f, FactionDetail.Technique t) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["upgradeTechniqueCompleted"], f.Name, t.Name), false); }
public void addGameEndWithUniteEntry(GameDate date, Faction f) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["gameEndWithUnite"], f.Name, f.Leader.Name), true); }
public void addChangeCapitalEntry(GameDate date, Faction f, Architecture newCapital) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["changeCapital"], f.Name, newCapital.Name), true); }
public void addNewFactionEntry(GameDate date, Faction oldFaction, Faction newFaction, Architecture foundLocation) { if (oldFaction != null) { this.addTableEntry(date, composeFactionList(oldFaction, newFaction), String.Format(yearTableStrings["newFaction"], newFaction.Leader, oldFaction.Name, foundLocation.Name), true); } else { this.addTableEntry(date, composeFactionList(oldFaction, newFaction), String.Format(yearTableStrings["newFactionOnEmpty"], newFaction.Leader, foundLocation.Name), true); } }
public void addChangeKingEntry(GameDate date, Person p) { this.addTableEntry(date, composeFactionList(p.BelongedFaction), String.Format(yearTableStrings["changeKing"], p.BelongedFaction.Name, p.Name), true); }
public void addAwardTitleEntry(GameDate date, Person p, PersonDetail.Title title) { this.addPersonInGameBiography(p, date, String.Format(yearTableStrings["awardTitle_p"], title.Name)); }
public void addAdvanceGuanjueEntry(GameDate date, Faction f, guanjuezhongleilei guanjue) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["advanceGuanjue"], f.Name, guanjue.Name), true); }
public void addChangeFactionEntry(GameDate date, Faction oldFaction, Faction newFaction) { this.addTableEntry(date, composeFactionList(oldFaction, newFaction), String.Format(yearTableStrings["changeFaction"], oldFaction.Name, newFaction.Name), true); }
public void addFactionDestroyedEntry(GameDate date, Faction f) { this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["factionDestroyed"], f.Name), true); this.addPersonInGameBiography(f.Leader, date, String.Format(yearTableStrings["factionDestroyed_p"], f.Name)); }
public void addTableEntry(GameDate date, FactionList faction, string content, bool global) { this.Add(new YearTableEntry(this.GetFreeGameObjectID(), date, faction, content, global) as GameObject); }