本文整理汇总了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;
}
}
}
示例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);
}
}
示例3: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFactionWithPrincess != null)
{
person.AddHated(person.BelongedFaction.Leader);
}
}
示例4: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.TempRateOfOffence = this.rate;
}
}
示例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);
}
示例6: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.ChanceOfBlockArrowAttack += this.chance;
}
}
示例7: PurifyInfluenceKind
public override void PurifyInfluenceKind(Person p)
{
if (p.BelongedFaction != null)
{
p.BelongedFaction.techniquePointCostRateDecrease.Remove(this.increment);
}
}
示例8: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person p)
{
if (p.BelongedFaction != null)
{
p.BelongedFaction.techniqueFundCostRateDecrease.Add(this.increment);
}
}
示例9: PurifyInfluenceKind
public override void PurifyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.StuntDayDecrementOfAttack -= this.chance;
}
}
示例10: PurifyInfluenceKind
public override void PurifyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.StuntArchitectureDamageRate = 1f;
}
}
示例11: PurifyInfluenceKind
public override void PurifyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.ChanceOfTrippleDamage -= this.chance;
}
}
示例12: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.StuntArchitectureDamageRate = this.rate;
}
}
示例13: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFactionWithPrincess != null)
{
person.BelongedFactionWithPrincess.Leader.AdjustRelation(person, 0, increment);
}
}
示例14: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person person)
{
if (person.LocationTroop != null)
{
person.LocationTroop.ChanceOfDoubleDamage += this.chance;
}
}
示例15: ApplyInfluenceKind
public override void ApplyInfluenceKind(Person person)
{
if (this.increment > person.InfluenceIncrementOfCommand)
{
person.InfluenceIncrementOfCommand += this.increment;
}
}