Ejemplo n.º 1
0
    public void QueueTrainUnitCommand()
    {
        Debug.Log("clicky");
        GameBehaviourCommand command = ArmyCommandFactory.CreateBuyUnitCommand(type, PlayerType.PLAYER);

        QueueUpCommand(command);
    }
Ejemplo n.º 2
0
    // -------------------------------------------------------------------------------------------------------------------------------------------------------
    // Execution Phase

    // Gets command for given Unit type
    public GameBehaviourCommand GetUnitToAddToQueue(UnitType type)
    {
        UnitPurchaseModel model = UnitPurchaseModelFactory.Create(type);

        // update internal state

        startingUnits.Add(type);

        // add command to list
        return(ArmyCommandFactory.CreateBuyUnitCommand(type, PlayerType.AI));
    }