//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);
 }
예제 #3
0
 public GameRuleDesignComponentSelectorDescriptor(GameRuleSelector sd)
     : base(null, 0, null)
 {
     List<GameObject> iconList = new List<GameObject>();
     sd.addIcons(iconList);
     displayIcon = iconList[0];
     selectorDescribed = sd;
 }
예제 #4
0
 public static GameRuleSelector selectorIdentifier(System.Type type, GameRuleSelector otherSelector)
 {
     return selectorIdentifier(type,
         !(otherSelector is GameRuleOpponentSelector || otherSelector is GameRuleBallShooterOpponentSelector));
 }
예제 #5
0
 public GameRuleEffectAction(GameRuleSelector sos, GameRuleEffect ie)
 {
     selector = sos;
     innerEffect = ie;
 }
예제 #6
0
 public GameRuleActionUntilConditionDuration(GameRuleSelector ts, GameRuleEventHappenedCondition uc)
 {
     triggerSelector = ts;
     untilCondition = uc;
 }