CBlob::isOnLadder

From King Arthur's Gold Wiki
Revision as of 22:33, 1 October 2012 by Ardivaba (Talk | contribs)

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

Returns true if blob is on the ladder, false otherwise.


This function is the most simple way to determine if given blob is currently on the ladder or not. (Example, if player is using the ladder)

bool isOnLadder()

Example:

if( blob.isOnLadder() )
{
     ...
     /*
          Insert any logic here, which you only want to use if blob is currently using the ladder
     */
}

Object method of: CBlob