Class Index | File Index

Classes


Namespace core.game

Everything about games except the actual simulation. So, loading the schedule, loading the teams, saving the results, and handling multi-day simulations and what happens when there are no games left to play.
Defined in: <js/core/game.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
core.game.loadTeams(transaction, cb)
Load all teams into an array of team objects.
Namespace Detail
core.game
Method Detail
<static> core.game.loadTeams(transaction, cb)
Load all teams into an array of team objects. The team objects contain all the information needed to simulate games. It would be more efficient if it only loaded team data for teams that are actually playing, particularly in the playoffs.
Parameters:
{IDBTransaction} transaction
A readwrite IndexedDB transaction on games, players, playoffSeries, releasedPlayers, schedule, and teams.
{function(Array)} cb
Callback function that takes the array of team objects as its only argument.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Mar 01 2013 11:45:19 GMT-0500 (EST)