当前位置: 首页>>代码示例>>C#>>正文


C# GameObjects.Person类代码示例

本文整理汇总了C#中GameObjects.Person的典型用法代码示例。如果您正苦于以下问题:C# Person类的具体用法?C# Person怎么用?C# Person使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Person类属于GameObjects命名空间,在下文中一共展示了Person类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ApplyInfluence

 public void ApplyInfluence(Person person, Applier applier, int applierID)
 {
     bool flag = false;
     bool flag2 = false;
     foreach (Influence influence in this.Influences.Values)
     {
         if ((influence.Type != InfluenceType.前提) && (influence.Type != InfluenceType.多选一))
         {
             if (!flag || flag2)
             {
                 influence.ApplyInfluence(person, applier, applierID);
             }
             continue;
         }
         if (!(flag || (influence.Type != InfluenceType.多选一)))
         {
             flag = true;
         }
         if (influence.IsVaild(person))
         {
             if (influence.Type == InfluenceType.多选一)
             {
                 flag2 = true;
                 continue;
             }
         }
         else if (influence.Type == InfluenceType.前提)
         {
             break;
         }
     }
 }
开发者ID:k45399735,项目名称:ZhongHuaSanGuoZhi,代码行数:32,代码来源:InfluenceTable.cs

示例2: addChildrenBornEntry

 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);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:YearTable.cs

示例3: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFactionWithPrincess != null)
     {
         person.AddHated(person.BelongedFaction.Leader);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:EventEffect227.cs

示例4: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.TempRateOfOffence = this.rate;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind4000.cs

示例5: CheckCondition

 public bool CheckCondition(Person person, Event e)
 {
     if (this.Kind == null) return false;
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     return this.Kind.CheckConditionKind(person, e) || this.Kind.CheckConditionKind(person);
 }
开发者ID:k45399735,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:Condition.cs

示例6: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.ChanceOfBlockArrowAttack += this.chance;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind5090.cs

示例7: PurifyInfluenceKind

 public override void PurifyInfluenceKind(Person p)
 {
     if (p.BelongedFaction != null)
     {
         p.BelongedFaction.techniquePointCostRateDecrease.Remove(this.increment);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind6610.cs

示例8: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person p)
 {
     if (p.BelongedFaction != null)
     {
         p.BelongedFaction.techniqueFundCostRateDecrease.Add(this.increment);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind6630.cs

示例9: PurifyInfluenceKind

 public override void PurifyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.StuntDayDecrementOfAttack -= this.chance;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind5030.cs

示例10: PurifyInfluenceKind

 public override void PurifyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.StuntArchitectureDamageRate = 1f;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind4020.cs

示例11: PurifyInfluenceKind

 public override void PurifyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.ChanceOfTrippleDamage -= this.chance;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind5055.cs

示例12: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.StuntArchitectureDamageRate = this.rate;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind4020.cs

示例13: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFactionWithPrincess != null)
     {
         person.BelongedFactionWithPrincess.Leader.AdjustRelation(person, 0, increment);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:EventEffect235.cs

示例14: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.LocationTroop.ChanceOfDoubleDamage += this.chance;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind5050.cs

示例15: ApplyInfluenceKind

 public override void ApplyInfluenceKind(Person person)
 {
     if (this.increment > person.InfluenceIncrementOfCommand)
     {
         person.InfluenceIncrementOfCommand += this.increment;
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind6000.cs


注:本文中的GameObjects.Person类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。