コード例 #1
0
 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));
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 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));
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 //太守
 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));
 }
コード例 #8
0
 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));
 }
コード例 #9
0
 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));
     }
 }
コード例 #10
0
 public void addFactionDestroyedEntry(GameDate date, Faction f)
 {
     this.addTableEntry(date, composeFactionList(f), String.Format(yearTableStrings["factionDestroyed"], f.Name), true);
 }
コード例 #11
0
 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);
     }
 }
コード例 #12
0
ファイル: GameDate.cs プロジェクト: skicean/ZhongHuaSanGuoZhi
 public GameDate(GameDate d)
 {
     Year = d.Year;
     Month = d.Month;
     Day = d.Day;
 }
コード例 #13
0
 public void addTableEntry(int id, GameDate date, FactionList faction, string content, bool global)
 {
     this.Add(new YearTableEntry(id, date, faction, content, global) as GameObject);
 }
コード例 #14
0
 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));
 }
コード例 #15
0
 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));
 }
コード例 #16
0
 public void addKingDeathEntry(GameDate date, Person p, Faction oldFaction)
 {
     this.addTableEntry(date, composeFactionList(oldFaction),
         String.Format(yearTableStrings["kingDeath"], oldFaction.Name, p.Name), true);
 }
コード例 #17
0
 private void addTableEntry(GameDate date, FactionList faction, string content, bool global)
 {
     this.Add(new YearTableEntry(this.GetFreeGameObjectID(), date, faction, content, global) as GameObject);
 }
コード例 #18
0
 public void addSelfBecomeEmperorEntry(GameDate date, Faction f)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["selfBecomeEmperor"], f.Name, f.Leader.Name), true);
 }
コード例 #19
0
 public void addBecomeNoFactionEntry(GameDate date, Person p, Faction f)
 {
     this.addPersonInGameBiography(p, date,
                                   String.Format(yearTableStrings["becomeNoFaction_p"], f.Name));
 }
コード例 #20
0
 //立储
 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));
 }
コード例 #21
0
 public void addPersonInGameBiography(Person p, GameDate date, string content)
 {
     p.PersonBiography.InGame = date.Year + "年" + date.Month + "月:" + content + '\n' + p.PersonBiography.InGame;
 }
コード例 #22
0
 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));
 }
コード例 #23
0
 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));
 }
コード例 #24
0
 public void addFactionTechniqueCompletedEntry(GameDate date, Faction f, FactionDetail.Technique t)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["upgradeTechniqueCompleted"], f.Name, t.Name), false);
 }
コード例 #25
0
 public void addGameEndWithUniteEntry(GameDate date, Faction f)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["gameEndWithUnite"], f.Name, f.Leader.Name), true);
 }
コード例 #26
0
 public void addChangeCapitalEntry(GameDate date, Faction f, Architecture newCapital)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["changeCapital"], f.Name, newCapital.Name), true);
 }
コード例 #27
0
 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);
     }
 }
コード例 #28
0
 public void addChangeKingEntry(GameDate date, Person p)
 {
     this.addTableEntry(date, composeFactionList(p.BelongedFaction),
         String.Format(yearTableStrings["changeKing"], p.BelongedFaction.Name, p.Name), true);
 }
コード例 #29
0
 public void addTableEntry(int id, GameDate date, FactionList faction, string content, bool global)
 {
     this.Add(new YearTableEntry(id, date, faction, content, global) as GameObject);
 }
コード例 #30
0
 public void addAwardTitleEntry(GameDate date, Person p, PersonDetail.Title title)
 {
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["awardTitle_p"], title.Name));
 }
コード例 #31
0
 public void addAdvanceGuanjueEntry(GameDate date, Faction f, guanjuezhongleilei guanjue)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["advanceGuanjue"], f.Name, guanjue.Name), true);
 }
コード例 #32
0
 public void addChangeCapitalEntry(GameDate date, Faction f, Architecture newCapital)
 {
     this.addTableEntry(date, composeFactionList(f),
                        String.Format(yearTableStrings["changeCapital"], f.Name, newCapital.Name), true);
 }
コード例 #33
0
 public void addChangeFactionEntry(GameDate date, Faction oldFaction, Faction newFaction)
 {
     this.addTableEntry(date, composeFactionList(oldFaction, newFaction),
         String.Format(yearTableStrings["changeFaction"], oldFaction.Name, newFaction.Name), true);
 }
コード例 #34
0
 public void addBecomeNoFactionEntry(GameDate date, Person p, Faction f)
 {
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["becomeNoFaction_p"], f.Name));
 }
コード例 #35
0
 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));
 }
コード例 #36
0
 public void addTableEntry(GameDate date, FactionList faction, string content, bool global)
 {
     this.Add(new YearTableEntry(this.GetFreeGameObjectID(), date, faction, content, global) as GameObject);
 }