• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GameObjects.Person类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ApplyEffectKind

 public override void ApplyEffectKind(Person person)
 {
     if (person.LocationTroop != null)
     {
         person.ToDeath(null, person.BelongedFaction);
     }
 }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffectKind80.cs


示例17: challengePersonString

        private string challengePersonString(Person person)
        {
            //武将ID,姓,名,字,性别(0,女、1,男),头像编号,身份(0 盗贼,1 武将,2君主)
            //生命,体力,力量,敏捷,
            //武艺,统御,智谋,政治,魅力,
            //相性,勇猛,冷静,义理,野心,名声,
            //坐骑(1、没有马;300、赤兔马;301、的卢;302、绝影;303、爪黄飞电;304、大宛马),
            //忠诚度,当前所属势力声望,
            //当前效力君主的魅力(没有君主传-1),当前效力君主的相性(没有君主传-1)


            string para;
            para = person.ID.ToString() + "," + person.SurName + "," + person.GivenName + "," + (person.CalledName == "" ? "无" : person.CalledName) + "," + (person.Sex ? "0" : "1") + "," + person.PictureIndex.ToString() + ","+person.Identity().ToString()+",";
            para += person.Strength.ToString() + "," + person.Strength.ToString() + "," + person.Strength.ToString() + "," + person.Strength.ToString() + ",";
            para += person.Strength.ToString() + "," + person.Command.ToString() + "," + person.Intelligence.ToString() + "," + person.Politics.ToString() + "," + person.Glamour.ToString() + ",";
            para += person.Ideal.ToString() + "," + person.Braveness.ToString() + "," + person.Calmness.ToString() + "," + person.PersonalLoyalty.ToString() + "," + person.Ambition.ToString() + "," + person.Reputation.ToString() + ",";
            ///////////////////////////////判断有没有宝物马
            if (person.HasHorse() == -1)  //游戏中用-1表示没有马,而单挑程序中用1表示没有马
            {
                para += "1" + ",";
            }
            else
            {
                para += person.HasHorse().ToString() + ",";
            }
            /////////////////////////////////
            para += person.Loyalty.ToString() + "," + (person.BelongedFaction == null ? 0 : person.BelongedFaction.Reputation).ToString()+",";
            para += (person.BelongedFaction == null ? -1 : person.BelongedFaction.Leader.Glamour).ToString() + "," + (person.BelongedFaction == null ? -1 : person.BelongedFaction.Leader.Ideal).ToString();
            para += "\r\n";
            return para;
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:31,代码来源:Challenge.cs


示例18: PurifyInfluenceKind

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


示例19: PurifyInfluenceKind

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


示例20: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.LocationArchitecture != null)
     {
         person.Status = GameObjects.PersonDetail.PersonStatus.Princess;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect213.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GameObjects.PersonList类代码示例发布时间:2022-05-26
下一篇:
C# GameObjects.Military类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap