internal RovioSettings(Rovio rovio) { this.rovio = rovio; this.groupVideo = new VideoGroup(this); this.groupMovement = new MovementGroup(this); this.groupMail = new MailGroup(this); }
public static void Simulate() { for (i = 0; i < ActiveGroupPeakCount; i++) { if (ActiveGroups[i] != null) { moveGroup = ActiveGroups [i]; moveGroup.LocalSimulate(); } } }
public override void Execute(Command com) { if (!com.Used) { MovementGroup.CreateGroup(com); com.Used = true; } MovementGroup.LastCreatedGroup.Add(this); }
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; }
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); }
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; } }