public override Conversation Create(Envelope e) { Conversation c = null; switch (e.message.MessageType) { case Message.REQUEST_GAME: c = new JoinGameConversation.JoinGameConversation(e, ManagingCommFacility); break; case Message.START_GAME: c = new StartGameConversation.StartGameConversation(e, ManagingCommFacility); break; // TODO: Add cases for the other conversations } return(c); }
/// <summary> /// Constructor, passes owning conversation to the base class /// </summary> /// <param name="conv">Conversation that owns this state</param> public StartGameAcknowledgeStartState(StartGameConversation conv) : base(conv) { }