示例#1
0
    public void forceBuyWorker()
    {
        // Spend the cash money
        gameState.forceBuyWorker();
        // Place the worker at 0,0
        this.spawnWorker();
        // Update the UI
        resourceDisplay.addTotalWorker();

        // TODO: put this somewhere else
        foreach (ResourceChange rc in WorkerFactory.WORKER_COST)
        {
            resourceDisplay.updateResourceCount(rc.resourceType, gameState.getStockpile(rc.resourceType));
        }
    }