Class Index
Functions called directly in response to user action (clicking a button, etc).
All aspects of contract negotiation.
The annual draft of new prospects.
Anything related to budget/finances.
Functions related to free agents that didn't make sense to put anywhere else.
Everything about games except the actual simulation.
Individual game simulation.
Creating and removing leagues.
Functions operating on player objects, or parts of player objects.
Somewhat of a hodgepodge.
Functions operating on team objects, or parts of team objects.
Trades between the user's team and other teams.
Creating, migrating, and connecting to databases; working with transactions.
Defines the constant portions of g.
Anything that directly updates the UI.
Advanced stats (PER, WS, etc) that require some nontrivial calculations and thus are calculated and cached once each day.
Various utility functions that don't have anywhere else to go.
These functions all deal with locking game state when there is some blocking action in progress.
Messages from the owner of the team to the GM.
Module to emulate some of Python's random library.
Handlebars helper functions.
Helper functions called only by views.
Small components/widgets, such as drop down menus to switch between seasons/teams.
Game log and box score viewing for all seasons and teams.