/// <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; }
public EndTurnConversation(Envelope envelope, CommFacility commSubsystem) : base(envelope, commSubsystem) { startUp = new EndTurnStartUp(this); waitForAcks = new EndTurnWaitForAcks(this); currentState = startUp; }
public JoinGameConversation(Envelope envelope, CommFacility commSubsystem) : base(envelope, commSubsystem) { StartUpState = new JoinGameStartUpState(this); WaitForGameManagerState = new JoinGameWaitForGameManagerState(this); currentState = StartUpState; }
public RollConversation(Envelope envelope, CommFacility commSubsystem) : base(envelope, commSubsystem) { startUp = new RollStartUp(this); waitForAck = new RollWaitForAck(this); currentState = startUp; }
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; }
/// <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()); }
public AppWorker(ConversationFactory factory) { commFacility = new CommFacility(this, factory); _keepGoing = false; }
/// <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()); }
public TestAppWorker(RegistryData registryData, IPEndPoint registryEndpoint) { RegistryData = registryData; this.registryEndpoint = registryEndpoint; commFacility = new CommFacility(this, new RegistryConversationFactory()); }
public TestAppWorker(UserInfo userInfo) : base() { UserInfo = userInfo; commFacility = new CommFacility(this, new UserAppConversationFactory()); }
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()); }