Пример #1
0
 /// <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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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>();
     }
 }
Пример #4
0
        /// <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;
        }