Beispiel #1
0
 dispose() {
     this.manager_.dispose();
     this.manager_ = null;
 }
Beispiel #2
0
    // ---------------------------------------------------------------------------------------------

    // Creates the supporting infrastructure around |minigame|. The |player| is the initiating
    // player for whom the minigame has been created.
    createMinigame(category, minigame, player) {
        this.manager_.createMinigame(category, minigame, player);
    }
Beispiel #3
0
 // Adds |player| to the |minigame| belonging to |category|.
 addPlayerToMinigame(category, minigame, player) {
     this.manager_.addPlayerToMinigame(category, minigame, player);
 }
Beispiel #4
0
 // Returns the name of the minigame |player| is involved in, or NULL when they are not currently
 // involved in any minigame at all.
 getMinigameNameForPlayer(player) {
     return this.manager_.getMinigameNameForPlayer(player);
 }
Beispiel #5
0
    // ---------------------------------------------------------------------------------------------

    // Returns whether the |player| is currently involved in any minigame.
    isPlayerEngaged(player) {
        return this.manager_.isPlayerEngaged(player);
    }
Beispiel #6
0
 // Deletes the minigame |category|. All associated minigames will be stopped as well. Will throw
 // an exception if |category| has not been previously created.
 deleteCategory(category) {
     this.manager_.deleteCategory(category);
 }
Beispiel #7
0
 // Returns an array of minigames that are currently in-progress for the |category|.
 getMinigamesForCategory(category) {
     return this.manager_.getMinigamesForCategory(category);
 }
Beispiel #8
0
    // ---------------------------------------------------------------------------------------------
    // Public API of the minigame feature.
    // ---------------------------------------------------------------------------------------------

    // Creates a new, opaque token for the category of minigames described by |description|.
    createCategory(description) {
        return this.manager_.createCategory(description);
    }