Class Index | File Index

Classes


Namespace core.league

Creating and removing leagues.
Defined in: <js/core/league.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
core.league.create(name, tid, playerGeneration, cb)
Create a new league.
<static>  
core.league.export_(lid, cb)
Export an existing league.
<static>  
core.league.remove(lid, cb)
Delete an existing league.
Namespace Detail
core.league
Method Detail
<static> core.league.create(name, tid, playerGeneration, cb)
Create a new league.
Parameters:
{string} name
The name of the league.
{number} tid
The team ID for the team the user wants to manage.
{string} playerGeneration
Either "random" to generate random players or "nba2012" to load NBA rosters.
cb

<static> core.league.export_(lid, cb)
Export an existing league.
Parameters:
{number} lid
League ID.
{function(Object)} cb
Callback whose first argument contains all the exported league data.

<static> core.league.remove(lid, cb)
Delete an existing league.
Parameters:
{number} lid
League ID.
{function()=} cb
Optional callback.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 10 2013 23:08:31 GMT-0400 (EDT)