Class Index | File Index

Classes


Namespace core.freeAgents

Functions related to free agents that didn't make sense to put anywhere else.
Defined in: <js/core/freeAgents.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
core.freeAgents.amountWithMood(amount, mood)
Get contract amount adjusted for mood.
<static>  
core.freeAgents.autoSign(cb)
AI teams sign free agents.
<static>  
core.freeAgents.decreaseDemands(cb)
Decrease contract demands for all free agents.
Namespace Detail
core.freeAgents
Method Detail
<static> {number} core.freeAgents.amountWithMood(amount, mood)
Get contract amount adjusted for mood.
Parameters:
{number} amount
Contract amount, in thousands of dollars or millions of dollars (fun auto-detect!).
{number} mood
Player mood towards a team, from 0 (happy) to 1 (angry).
Returns:
{number} Contract amoung adjusted for mood.

<static> core.freeAgents.autoSign(cb)
AI teams sign free agents. Each team (in random order) will sign free agents up to their salary cap or roster size limit. This should eventually be made smarter
Parameters:
{function()} cb
Callback.

<static> core.freeAgents.decreaseDemands(cb)
Decrease contract demands for all free agents. This is called after each day in the regular season, as free agents become more willing to take smaller contracts.
Parameters:
{function()} cb
Callback.

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