Exemplo n.º 1
0
    private bool DoAIAction()
    {
        AI_Action action = ai.GetAcition();

        if (action.type == AI_Action.Type.Complete)
        {
            return(true);
        }
        else if (action.type == AI_Action.Type.Move)
        {
            Move(board.GetUnit(action.move.src), board.GetUnit(action.move.tar), action.move.tar);
        }
        else
        {
            Buy(action.buy.type);
        }
        return(false);
    }