Example #1
0
    private void ApplyMessage(MessageType mt)
    {
        switch (mt.id)
        {
        case 0:
            activeBoard = GetBoard(mt.id);
            activeBoard.Apply(mt, speed);
            break;

        case 1:
            QuestionMessage qm = new QuestionMessage(GetBoard(mt.id));
            qm.Apply(mt, speed);
            activeBoard = qm;
            break;
        }
    }