CBlob::isOnLadder

From King Arthur's Gold Wiki
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