Ejemplo n.º 1
0
    public void gotPlayer(Player newPlayer)
    {
        counter++;

        if (newPlayer != null)
        {
            log.log("Player " + newPlayer.getName() + " joined quest.");
            activeQuest.addPlayer(newPlayer);
        }
        if (counter == players.Length)
        {
            log.log("Done looking for players.");
            startQuest();
            counter = 0;
        }
        else
        {
            getPlayers();
        }
    }