/// <summary>
 /// Constructor, passes first envelope and managing CommFacility to base class
 /// </summary>
 /// <param name="envelope">firstEnvelope</param>
 /// <param name="commFacility">CommFacility that manages this conversation</param>
 public StartGameConversation(Envelope envelope, CommFacility commFacility)
     : base(envelope, commFacility)
 {
     StartUpState         = new StartGameStartUpState(this);
     GameStateUpdateState = new StartGameUpdateState(this);
     currentState         = StartUpState;
 }
Пример #2
0
 public EndTurnConversation(Envelope envelope, CommFacility commSubsystem)
     : base(envelope, commSubsystem)
 {
     startUp      = new EndTurnStartUp(this);
     waitForAcks  = new EndTurnWaitForAcks(this);
     currentState = startUp;
 }
Пример #3
0
 public JoinGameConversation(Envelope envelope, CommFacility commSubsystem)
     : base(envelope, commSubsystem)
 {
     StartUpState            = new JoinGameStartUpState(this);
     WaitForGameManagerState = new JoinGameWaitForGameManagerState(this);
     currentState            = StartUpState;
 }
Пример #4
0
 public RollConversation(Envelope envelope, CommFacility commSubsystem)
     : base(envelope, commSubsystem)
 {
     startUp      = new RollStartUp(this);
     waitForAck   = new RollWaitForAck(this);
     currentState = startUp;
 }
Пример #5
0
 public LaunchConversation(Envelope envelope, CommFacility commFacility)
     : base(envelope, commFacility)
 {
     startUp         = new LaunchStartUp(this);
     waitForGameInfo = new LaunchWaitForGameInfo(this);
     currentState    = startUp;
 }
 public JoinGameConversation(Envelope envelope, CommFacility commSubsystem)
     : base(envelope, commSubsystem)
 {
     startUp         = new JoinGameStartUp(this);
     waitForGameInfo = new JoinGameWaitForGameInfo(this);
     currentState    = startUp;
 }
Пример #7
0
 /// <summary>
 /// Constructor, passes first envelope and managing CommFacility to base class
 /// </summary>
 /// <param name="envelope">firstEnvelope</param>
 /// <param name="commFacility">CommFacility that manages this conversation</param>
 public StartGameConversation(Envelope envelope, CommFacility commFacility)
     : base(envelope, commFacility)
 {
     AcknowledgeStartState      = new StartGameAcknowledgeStartState(this);
     AcknowledgeGameUpdateState = new StartGameAcknowledgeGameUpdateState(this);
     WaitForPlayerStartAckState = new StartGameAcknowledgeGameUpdateState(this);
     currentState = AcknowledgeStartState;
 }
 public TestAppWorker(RegistryData registryData)
     : base()
 {
     RegistryData = registryData;
     commFacility = new CommFacility(this, new RegistryConversationFactory());
 }
Пример #9
0
 public AppWorker(ConversationFactory factory)
 {
     commFacility = new CommFacility(this, factory);
     _keepGoing   = false;
 }
Пример #10
0
 /// <summary>
 /// Constructor, passes first envelope and managing CommFacility to base class
 /// </summary>
 /// <param name="envelope">firstEnvelope</param>
 /// <param name="commFacility">CommFacility that manages this conversation</param>
 public StartGameConversation(Envelope envelope, CommFacility commFacility)
     : base(envelope, commFacility)
 {
     AcknowledgeStartState = new StartGameAcknowledgeStartState(this);
     currentState          = AcknowledgeStartState;
 }
 public TestAppWorker()
 {
     commFacility = new CommFacility(this, new UserAppConversationFactory());
 }
Пример #12
0
 public TestAppWorker(RegistryData registryData, IPEndPoint registryEndpoint)
 {
     RegistryData          = registryData;
     this.registryEndpoint = registryEndpoint;
     commFacility          = new CommFacility(this, new RegistryConversationFactory());
 }
Пример #13
0
 public TestAppWorker(UserInfo userInfo)
     : base()
 {
     UserInfo     = userInfo;
     commFacility = new CommFacility(this, new UserAppConversationFactory());
 }
Пример #14
0
 public TestAppWorker(string[] testArgs)
     : base(testArgs)
 {
     commFacility = new CommFacility(this, new GameManagerConversationFactory());
 }
 public TestAppWorker(string[] args, GameInfo gameInfo)
     : base(args)
 {
     GameInfo     = gameInfo;
     commFacility = new CommFacility(this, new GameManagerConversationFactory());
 }