//an until-condition will provide its own selector for the source
 public string ToString(GameRuleSelector sourceSelector)
 {
     return sourceSelector.ToString() + GameRuleEvent.getEventText(eventType) +
         (targetType == typeof(FieldObject) ? param : GameRuleSourceSelector.selectorIdentifier(targetType, sourceSelector).ToString());
 }
 public void addIcons(List<GameObject> iconList, GameRuleSelector sourceSelector)
 {
     sourceSelector.addIcons(iconList);
     iconList.Add(GameRuleEvent.getEventIcon(eventType));
     if (targetType == typeof(FieldObject))
         addFieldObjectIcon(param, iconList);
     else
         GameRuleSourceSelector.selectorIdentifier(targetType, sourceSelector).addIcons(iconList);
 }
Esempio n. 3
0
 public GameRuleDesignComponentSelectorDescriptor(GameRuleSelector sd)
     : base(null, 0, null)
 {
     List<GameObject> iconList = new List<GameObject>();
     sd.addIcons(iconList);
     displayIcon = iconList[0];
     selectorDescribed = sd;
 }
Esempio n. 4
0
 public static GameRuleSelector selectorIdentifier(System.Type type, GameRuleSelector otherSelector)
 {
     return selectorIdentifier(type,
         !(otherSelector is GameRuleOpponentSelector || otherSelector is GameRuleBallShooterOpponentSelector));
 }
Esempio n. 5
0
 public GameRuleEffectAction(GameRuleSelector sos, GameRuleEffect ie)
 {
     selector = sos;
     innerEffect = ie;
 }
Esempio n. 6
0
 public GameRuleActionUntilConditionDuration(GameRuleSelector ts, GameRuleEventHappenedCondition uc)
 {
     triggerSelector = ts;
     untilCondition = uc;
 }