Difference between revisions of "CBlob::isOnLadder"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
+
Returns true if blob is on the ladder, false otherwise.
 
</onlyinclude>
 
</onlyinclude>
+
 
 +
 
 +
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)
 +
 
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
 
bool isOnLadder()
 
bool isOnLadder()
 +
</syntaxhighlight>
 +
 +
Example:
 +
<syntaxhighlight lang="cpp">
 +
if( blob.isOnLadder() )
 +
{
 +
    ...
 +
    /*
 +
          Insert any logic here, which you only want to use if blob is currently using the ladder
 +
    */
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 
   
 
   

Latest revision as of 23:33, 1 October 2012

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