GetPlayingBlob

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a reference to the CBlob with the given index in the list of blobs that represent currently active (i.e. spawned, not dead) players.

[[CBlob]]@ getPlayingBlob(u32 index)

Similar to getBlob, but because this is only for currently active 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
}