Exemple #1
0
    public override void ExecuteAiCommand(AiPlayer aiPlayer, ClientConnectionManager aiConnection)
    {
        // @TODO: AI implementation
        // Sending the same deck that the player loaded for now
        string     deckFileName = m_visualManager.GetDeckFileName();
        PackedDeck deck         = new PackedDeck();

        deck.LoadFromJSON(PackedDeck.deckPath + deckFileName);
        SGC_SendDeck command = new SGC_SendDeck(deck);

        m_visualManager.TransmitStream(command.PackCommand());
    }
Exemple #2
0
    public override void ExecuteCommand()
    {
        // @TODO: Open deck picker interface

        // For now, send the deck that was picked in the connect menu
        string     deckFileName = m_visualManager.GetDeckFileName();
        PackedDeck deck         = new PackedDeck();

        deck.LoadFromJSON(PackedDeck.deckPath + deckFileName);
        SGC_SendDeck command = new SGC_SendDeck(deck);

        m_visualManager.TransmitStream(command.PackCommand());

        FinishCommand();
    }