Difference between revisions of "GetPlayingBlobsSize"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns the number of CBlobs that represent currently living players. </onlyinclude> <syntaxhighlight lang="cpp">u32 getPlayingBlobsSize()</syntaxhighlight> Us...")
 
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
Returns the number of [[CBlob]]s that represent currently living players.
+
Returns the number of [[CBlob]]s that are currently active and in play - i.e. not settled map blocks or in inventories.
 
</onlyinclude>
 
</onlyinclude>
 
<syntaxhighlight lang="cpp">u32 getPlayingBlobsSize()</syntaxhighlight>
 
<syntaxhighlight lang="cpp">u32 getPlayingBlobsSize()</syntaxhighlight>

Revision as of 14:20, 15 August 2012

Returns the number of CBlobs that are currently active and in play - i.e. not settled map blocks or in inventories.

u32 getPlayingBlobsSize()

Usage example:

for ( int i = 0; i < getPlayingBlobsSize(); i++ )
{
  [[CBlob]]@ blob = [[getPlayingBlob]](i);
  // Do something to this player
}