Exemplo n.º 1
0
    public void finishTraining()
    {
        StrategyObject u = trainingQueue[0];

        //Cannot put this inside finishdevelopment because it requires a object, tag and position
        if (u is Playable)
        {
            Playable.create((Playable)u, deploy, tag);
        }
        if (u is Research)
        {
            player().research.FinishDevelopment((Research)u);
        }

        trainingQueue.RemoveAt(0);

        RemoveCancelButton(0);

        u.FinishDevelopment();
        if (trainingQueue.Count > 0)
        {
            startDevelopment(trainingQueue[0]);
        }
    }