Ejemplo n.º 1
0
        internal RovioSettings(Rovio rovio)
        {
            this.rovio = rovio;

            this.groupVideo = new VideoGroup(this);
            this.groupMovement = new MovementGroup(this);
            this.groupMail = new MailGroup(this);
        }
Ejemplo n.º 2
0
        internal RovioSettings(Rovio rovio)
        {
            this.rovio = rovio;

            this.groupVideo    = new VideoGroup(this);
            this.groupMovement = new MovementGroup(this);
            this.groupMail     = new MailGroup(this);
        }
Ejemplo n.º 3
0
 public static void Simulate()
 {
     for (i = 0; i < ActiveGroupPeakCount; i++) {
         if (ActiveGroups[i] != null)
         {
             moveGroup = ActiveGroups [i];
             moveGroup.LocalSimulate();
         }
     }
 }
Ejemplo n.º 4
0
    public override void Execute(Command com)
    {
        if (!com.Used)
        {
            MovementGroup.CreateGroup(com);
            com.Used = true;
        }

        MovementGroup.LastCreatedGroup.Add(this);
    }
Ejemplo n.º 5
0
    public static MovementGroup CreateGroup(Command com)
    {
        moveGroup = InactiveGroups.Count > 0 ? InactiveGroups.Pop () : new MovementGroup();
        slotIndex = ActiveGroupOpenSlots.Count > 0 ? ActiveGroupOpenSlots.Pop () : ActiveGroupPeakCount++;

        if (slotIndex == ActiveGroupCapacity)
        {
            ActiveGroupCapacity *= 2;
            System.Array.Resize (ref ActiveGroups, ActiveGroupCapacity);
        }

        moveGroup.IndexID = slotIndex;
        ActiveGroups[slotIndex] = (moveGroup);
        LastCreatedGroup = moveGroup;
        moveGroup.Initialize (com);
        return moveGroup;
    }
Ejemplo n.º 6
0
    public static MovementGroup CreateGroup(Command com)
    {
        moveGroup = InactiveGroups.Count > 0 ? InactiveGroups.Pop() : new MovementGroup();
        slotIndex = ActiveGroupOpenSlots.Count > 0 ? ActiveGroupOpenSlots.Pop() : ActiveGroupPeakCount++;

        if (slotIndex == ActiveGroupCapacity)
        {
            ActiveGroupCapacity *= 2;
            System.Array.Resize(ref ActiveGroups, ActiveGroupCapacity);
        }

        moveGroup.IndexID       = slotIndex;
        ActiveGroups[slotIndex] = (moveGroup);
        LastCreatedGroup        = moveGroup;
        moveGroup.Initialize(com);
        return(moveGroup);
    }
Ejemplo n.º 7
0
    public override void Execute(Command com)
    {
        if (!com.Used)
        {
            MovementGroup.CreateGroup(com);
            com.Used = true;
        }

        MovementGroup.LastCreatedGroup.Add(this);

        if (StraightPath)
        {
            RepathCount /= 4;
        }
        else
        {
            RepathCount /= 2;
        }
    }