[bfprog] autobalance

ScratchMonkey ScratchMonkey at MatureAsskickers.net
Tue Jun 21 12:57:37 PDT 2005


--On Tuesday, June 21, 2005 1:43 PM -0600 Forrest Thiessen 
<thiessen at cyberscapearena.com> wrote:

> Well, I was right--there is a MUCH better way to do this!
>
> The playerManager object has a method that does all the work for you:
>    bf2.playerManager.getNumberOfPlayersInTeam(team)

That's good if you need it for only one team. If you need both, then the 
other method makes only one pass through the list, which is probably faster.




More information about the BFProg mailing list