/**
 * FilterPageHighScoreInitModule
 * This module gets list of high score games to display on the filter page.
 */
function PwfPgHighScoreModule()
{
    this._name = PwfPgHighScoreModule.NAME;

    this.setGames = function(games) {
        this._games = games;

        /** populate the leader boards */
        for (var i = 0; i < this._games.length; i++) {
            var module = new HighScoresModule(this._games[i], HighScoresModule.MODE_PLAY_WITH_FRIENDS_PAGE);
            this._page.registerModule(module);
            var uuid = this._page.getLoggedInUserUuid();
            module.setUuid(uuid);
        }
    };
}

PwfPgHighScoreModule.NAME = "PwfPgHighScoreModule";

PwfPgHighScoreModule.prototype = new Module();
