Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0

Defined in: adventure/Outrocard.js, line 5

Framework class

Description

Outrocard can be used to print a completion screen when a player reaches an end state of the game (win, lose, or draw). Outrocard is created automatically by Game. This is an internal class that authors should not need to construct. However, authors can set title options from their game file as shown below.

Example:

var MyGame = new adventurejs.Game( "MyGame", "GameDisplay" );
MyGame.Outrocard.set({
});

Private Constructor:

var foo = new adventurejs.Outrocard(game)

Parameters:

  • game Game
    A reference to the game instance.
Inherited Overrides

Index

Methods:

Properties:

Methods Collapse all  |  Expand all

set
set(props) → {adventurejs.Outrocard}

Defined in: adventure/Outrocard.js, line 39

Parameters:

  • props Object
    A generic object containing properties to copy to the instance.
Provides a chainable shortcut method for setting a number of properties on the instance.

Returns:

adventurejs.Outrocard Returns the instance the method is called on (useful for chaining calls.)

Properties  |