/// <summary> /// Constructs a DssThread object. /// </summary> public DssThread(ControlStatusManager ctrlStatusMgr, IUiInvoke ui, TestSimulator simulator, INetwork network) { this.ctrlStatusMgr = ctrlStatusMgr; this.ui = ui; this.uiCallMarshal = new UiCallMarshal(this.ctrlStatusMgr, this.ui); this.simulator = simulator; this.actionQueue = new UiActionQueue(); this.currentChannelStates = null; this.network = network; }
public DssGuestThread(ControlStatusManager ctrlStatusMgr, IUiInvoke ui, TestSimulator simulator, LobbyInfo tgtLobby, INetwork network) : base(ctrlStatusMgr, ui, simulator, network) { this.firstSetupStep = true; this.newColor = PlayerColor.White; this.newColorSelected = false; this.applyNewColorSelection = false; //this.colorSelectRq = new ColorSelectRQ(); this.targetLobby = tgtLobby; this.aw = new List <RCPackage>(); this.previousChannelStates = null; }
public DssHostThread(ControlStatusManager ctrlStatusMgr, IUiInvoke ui, TestSimulator simulator, int opCount, INetwork network) : base(ctrlStatusMgr, ui, simulator, network) { this.firstSetupStep = true; this.opCount = opCount; this.previousChannelStates = null; this.rqs = new List <RCPackage> [opCount - 1]; for (int i = 0; i < this.rqs.Length; i++) { this.rqs[i] = new List <RCPackage>(); } }
/// <summary> /// Constructs a Player object. /// </summary> public Player(PlayerColor initialColor, Rectangle initialPos, TestSimulator simulator) { this.initialColor = initialColor; this.initialPosition = initialPos; this.currentColor = initialColor; this.currentPosition = initialPos; this.currentDirection = PlayerDirection.NoMove; this.previousPosition = initialPos; this.simulator = simulator; this.isActive = false; this.isDirty = false; }