GetPlayingBlob

From King Arthur's Gold Wiki
Revision as of 22:01, 14 August 2012 by Shadlington (Talk | contribs)

Jump to: navigation, search

Returns a reference to the CBlob with the given index in the list of blobs that represent currently living players.

[[CBlob]]@ getPlayingBlob(u32 index)

Similar to getBlob, but because this is only for currently living players, this can be useful for doing things to each player. Something like the following might therefore be useful:

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