Пример #1
0
    public void UseTicket(Connection c)
    {
        Investigator i = App.Model.actionPhaseModel.investigators[App.Model.actionPhaseModel.turnIndex];

        // Hide the ticket menu
        App.View.travelView.TicketUsed();
        // Spend the ticket
        // Spend Ticket Event ?
        if (c.type == ConnectionType.Ship)
        {
            i.SpendShipTicket();
        }
        if (c.type == ConnectionType.Train)
        {
            i.SpendTrainTicket();
        }

        // Move the Investigator
        App.Controller.locationController.MoveInvestigator(i, c.destination);

        App.Controller.queueController.CreateCallBackQueue(FinishAction); // Create Queue
        App.Model.eventModel.TravelEvent(c.destination, i);               // Populate Queue
        App.Controller.queueController.StartCallBackQueue();              // Start Queue
    }