GetPlayingBlob

From King Arthur's Gold Wiki
Revision as of 21:03, 19 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 are currently active - i.e. not settled map blocks or in inventories.


CBlob@ getPlayingBlob(u32 index)

Similar to getBlob, but only for active CBlobs. Usage example:

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