public override int countIdentifierReferences(string id)
    {
        int count = 0;

        // If the action references to the given identifier, increase the counter
        if ((action.getType() == Action.GIVE_TO || action.getType() == Action.USE_WITH || action.getType() == Action.DRAG_TO || action.getType() == Action.CUSTOM_INTERACT) && action.getTargetId().Equals(id))
        {
            count++;
        }

        if (action.getType() == Action.CUSTOM_INTERACT || action.getType() == Action.CUSTOM)
        {
            // Iterate through the resources
            foreach (ResourcesDataControl resourcesDataControl in resourcesDataControlList)
            {
                resourcesDataControl.countIdentifierReferences(id);
            }
        }

        // Add to the counter the references in the effects block
        count += EffectsController.countIdentifierReferences(id, action.getEffects());
        count += EffectsController.countIdentifierReferences(id, action.getNotEffects());
        //  count += EffectsController.countIdentifierReferences( id, action.getClickEffects( ) );

        count += conditionsController.countIdentifierReferences(id);
        return(count);
    }
예제 #2
0
    public override int countIdentifierReferences(string id)
    {
        int count = 0;

        count += controller.countIdentifierReferences(id);
        return(count);
    }
예제 #3
0
    public override int countIdentifierReferences(string id)
    {
        int count = 0;

        count += elementReference.getTargetId().Equals(id) ? 1 : 0;
        count += conditionsController.countIdentifierReferences(id);
        return(count);
    }
예제 #4
0
    public override int countIdentifierReferences(string id)
    {
        int count = 0;

        count += actionsListDataControl.countIdentifierReferences(id);
        count += conditionsController.countIdentifierReferences(id);
        //1.4
        count += descriptionsController.countIdentifierReferences(id);
        return(count);
    }
        public override int countIdentifierReferences(string id)
        {
            int occurrences = 0;

            if (id.Equals(milestone.getId(), StringComparison.InvariantCultureIgnoreCase))
            {
                ++occurrences;
            }
            return(conditionsController.countIdentifierReferences(id) + occurrences);
        }
예제 #6
0
    public override int countIdentifierReferences(string id)
    {
        int count = 0;

        // Add to the counter the values of the effects and posteffects
        count += EffectsController.countIdentifierReferences(id, timer.getEffects());
        count += EffectsController.countIdentifierReferences(id, timer.getPostEffects());
        count += initConditionsController.countIdentifierReferences(id);
        count += endConditionsController.countIdentifierReferences(id);
        return(count);
    }
예제 #7
0
    public override int countIdentifierReferences(string id)
    {
        int count = 0;

        if (id.Equals(exit.getNextSceneId()))
        {
            count = 1;
        }
        count += EffectsController.countIdentifierReferences(id, exit.getEffects());
        count += EffectsController.countIdentifierReferences(id, exit.getPostEffects());
        count += EffectsController.countIdentifierReferences(id, exit.getNotEffects());
        count += conditionsController.countIdentifierReferences(id);
        return(count);
    }
예제 #8
0
 public override int countIdentifierReferences(string id)
 {
     return(conditionsController.countIdentifierReferences(id));
 }