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

C# GameObjects.Faction类代码示例

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

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



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

示例1: ApplyInfluenceKind

        public override void ApplyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.AntiArrowChanceIncrementOfBubing += this.increment;
                    break;

                case 1:
                    faction.AntiArrowChanceIncrementOfNubing += this.increment;
                    break;

                case 2:
                    faction.AntiArrowChanceIncrementOfQibing += this.increment;
                    break;

                case 3:
                    faction.AntiArrowChanceIncrementOfShuijun += this.increment;
                    break;

                case 4:
                    faction.AntiArrowChanceIncrementOfQixie += this.increment;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2200.cs


示例2: ApplyInfluenceKind

        public override void ApplyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.OffenceRateOfBubing += this.rate;
                    break;

                case 1:
                    faction.OffenceRateOfNubing += this.rate;
                    break;

                case 2:
                    faction.OffenceRateOfQibing += this.rate;
                    break;

                case 3:
                    faction.OffenceRateOfShuijun += this.rate;
                    break;

                case 4:
                    faction.OffenceRateOfQixie += this.rate;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2240.cs


示例3: RunQueue

 public void RunQueue()
 {
     if (this.RunningFaction != null)
     {
         if (this.RunningFaction.Run())
         {
             this.RunningFaction = null;
         }
     }
     else if (!this.QueueEmpty)
     {
         this.RunningFaction = this.factionQueue.Dequeue();
         if (this.RunningFaction != null)
         {
             if (this.RunningFaction.Leader.BelongedFaction == null)
             {
                 this.RunningFaction = null;
             }
             else
             {
                 this.RunningFaction.Scenario.CurrentFaction = this.RunningFaction;
                 if (this.RunningFaction.Run())
                 {
                     this.RunningFaction = null;
                 }
             }
         }
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:29,代码来源:FactionListWithQueue.cs


示例4: addKingDeathEntry

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


示例5: ApplyInfluence

 public void ApplyInfluence(Faction faction, Applier applier, int applierID)
 {
     foreach (Influence influence in this.Influences.Values)
     {
         influence.ApplyInfluence(faction, applier, applierID);
     }
 }
开发者ID:k45399735,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceTable.cs


示例6: PurifyInfluenceKind

 public override void PurifyInfluenceKind(Faction faction)
 {
     if (faction.TechniqueMilitaryKinds.MilitaryKinds.ContainsKey(this.kind))
     {
         faction.TechniqueMilitaryKinds.MilitaryKinds.Remove(this.kind);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:InfluenceKind2100.cs


示例7: PurifyInfluenceKind

        public override void PurifyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.DefenceRateWhileCombatMethodOfBubing -= this.rate;
                    break;

                case 1:
                    faction.DefenceRateWhileCombatMethodOfNubing -= this.rate;
                    break;

                case 2:
                    faction.DefenceRateWhileCombatMethodOfQibing -= this.rate;
                    break;

                case 3:
                    faction.DefenceRateWhileCombatMethodOfShuijun -= this.rate;
                    break;

                case 4:
                    faction.DefenceRateWhileCombatMethodOfQixie -= this.rate;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2000.cs


示例8: addBecomeEmperorLegallyEntry

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


示例9: PurifyInfluenceKind

        public override void PurifyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.NoCounterChanceIncrementOfBubing -= this.increment;
                    break;

                case 1:
                    faction.NoCounterChanceIncrementOfNubing -= this.increment;
                    break;

                case 2:
                    faction.NoCounterChanceIncrementOfQibing -= this.increment;
                    break;

                case 3:
                    faction.NoCounterChanceIncrementOfShuijun -= this.increment;
                    break;

                case 4:
                    faction.NoCounterChanceIncrementOfQixie -= this.increment;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2220.cs


示例10: PurifyInfluenceKind

        public override void PurifyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.AllowAttackAfterMoveOfBubing = false;
                    break;

                case 1:
                    faction.AllowAttackAfterMoveOfNubing = false;
                    break;

                case 2:
                    faction.AllowAttackAfterMoveOfQibing = false;
                    break;

                case 3:
                    faction.AllowAttackAfterMoveOfShuijun = false;
                    break;

                case 4:
                    faction.AllowAttackAfterMoveOfQixie = false;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2230.cs


示例11: addAdvanceGuanjueEntry

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


示例12: CheckCondition

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


示例13: CheckPoint

 private static void CheckPoint(GameArea Area, List<Point> BlackAngles, Point point, GameScenario Scenario, Faction faction)
 {
     TerrainDetail terrainDetailByPosition = Scenario.GetTerrainDetailByPosition(point);
     if (terrainDetailByPosition != null)
     {
         if (terrainDetailByPosition.ViewThrough)
         {
             if (faction != null)
             {
                 Architecture architectureByPosition = Scenario.GetArchitectureByPosition(point);
                 if (!(architectureByPosition == null || architectureByPosition.Endurance <= 0 || faction.IsFriendlyWithoutTruce(architectureByPosition.BelongedFaction)))
                 {
                     BlackAngles.Add(point);
                     return;
                 }
             }
             if (!IsInBlackAngle(Area.Centre, BlackAngles, point))
             {
                 Area.AddPoint(point);
             }
         }
         else
         {
             BlackAngles.Add(point);
         }
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:27,代码来源:GameArea.cs


示例14: addChangeKingEntry

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


示例15: ApplyInfluenceKind

 public void ApplyInfluenceKind(Faction faction, Influence i, Applier applier, int applierID)
 {
     if (this.Type == InfluenceType.势力)
     {
         ApplyInfluenceKind(faction);
         foreach (Architecture a in faction.Architectures)
         {
             ApplyingArchitecture z = new ApplyingArchitecture(a, applier, applierID);
             if (!i.appliedArch.Contains(z))
             {
                 i.appliedArch.Add(z);
                 ApplyInfluenceKind(a, i, applier, applierID);
             }
         }
         foreach (Troop t in faction.Troops)
         {
             ApplyingTroop a = new ApplyingTroop(t, applier, applierID);
             if (!i.appliedTroop.Contains(a))
             {
                 i.appliedTroop.Add(a);
                 ApplyInfluenceKind(t, i, applier, applierID);
             }
         }
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind.cs


示例16: PurifyInfluenceKind

        public override void PurifyInfluenceKind(Faction faction)
        {
            switch (this.type)
            {
                case 0:
                    faction.AntiCriticalStrikeChanceIncrementWhileCombatMethodOfBubing -= this.increment;
                    break;

                case 1:
                    faction.AntiCriticalStrikeChanceIncrementWhileCombatMethodOfNubing -= this.increment;
                    break;

                case 2:
                    faction.AntiCriticalStrikeChanceIncrementWhileCombatMethodOfQibing -= this.increment;
                    break;

                case 3:
                    faction.AntiCriticalStrikeChanceIncrementWhileCombatMethodOfShuijun -= this.increment;
                    break;

                case 4:
                    faction.AntiCriticalStrikeChanceIncrementWhileCombatMethodOfQixie -= this.increment;
                    break;
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:InfluenceKind2030.cs


示例17: ApplyEffectKind

 public override void ApplyEffectKind(Faction f, Event e)
 {
     GameObjects.FactionDetail.Technique technique = f.Scenario.GameCommonData.AllTechniques.GetTechnique(increment);
     f.AvailableTechniques.AddTechnique(technique);
     f.Scenario.NewInfluence = true;
     technique.Influences.ApplyInfluence(f, GameObjects.Influences.Applier.Technique, increment);
     f.Scenario.NewInfluence = false;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect2020.cs


示例18: dgvFactions_CellMouseDoubleClick

 private void dgvFactions_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (!this.dgvFactions.IsCurrentCellInEditMode)
     {
         this.SelectedFaction = this.dgvFactions.SelectedRows[0].DataBoundItem as Faction;
         base.Close();
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:frmSelectFactionList.cs


示例19: ApplyEffectKind

 public override void ApplyEffectKind(Faction f, Event e)
 {
     GameObjectList d = base.Scenario.DiplomaticRelations.GetDiplomaticRelationListByFactionID(f.ID);
     foreach (GameObjects.FactionDetail.DiplomaticRelation i in d)
     {
         i.Relation += increment;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect2200.cs


示例20: CheckConditionKind

 public override bool CheckConditionKind(Faction faction)
 {
     int result = 0;
     foreach (Person p in faction.Persons)
     {
         result += p.TreasureCount;
     }
     return result < number;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:9,代码来源:ConditionKind515.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# GameObjects.GameArea类代码示例发布时间:2022-05-26
下一篇:
C# GameObjects.Event类代码示例发布时间: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