Package : Hero

Functions Index

FlyTo , Pay , TestAction , WipeInvHero ,

Functions Details


FlyTo


extern void FlyTo(short posX, short posY, char scanSquare=SCAN_NOTHING )
Make Kliz fly
Parameters:
posX - position x of destination
posY - position y of destination
scanSquare - can be a combinaison of SCAN_STOP, SCAN_WATER to avoid fly over STOP or WATER squares


Pay


extern BOOL Pay(uchar value)
Make Kliz pay
Parameters:
value - money wanted
Returns:
TRUE if Kliz can pay


TestAction


extern void TestAction()
Test square property and execute action (ex: display text, jump, save game...)


WipeInvHero


extern void WipeInvHero()
Wipe Kliz inventory