Open Game Engine 2D API
|
Functions | |
int | OGE_GetSprCurrentScene (int iSprId) |
Get current scene of the sprite. | |
int | OGE_GetSprCurrentGroup (int iSprId) |
Get current group of the sprite. | |
int | OGE_GetSpr () |
Get current sprite. | |
string | OGE_GetSprName (int iSprId) |
Get the name of the sprite. | |
void | OGE_CallBaseEvent () |
Call the same event of the base class of current sprite. | |
bool | OGE_GetSprActive (int iSprId) |
Check if the sprite is active or not. | |
void | OGE_SetSprActive (int iSprId, bool bValue) |
Set the sprite to be active or deactive. | |
bool | OGE_GetSprVisible (int iSprId) |
Check if the sprite is visible or not. | |
void | OGE_SetSprVisible (int iSprId, bool bValue) |
Set the sprite to be visible or invisible. | |
bool | OGE_GetSprCollide (int iSprId) |
Check if the sprite has collision detection or not. | |
void | OGE_SetSprCollide (int iSprId, bool bValue) |
Set the sprite to get or give up collision detection. | |
bool | OGE_GetSprInput (int iSprId) |
Check if the sprite can accept the input from the player. | |
void | OGE_SetSprInput (int iSprId, bool bValue) |
Set the sprite to be able to accept input or not. | |
bool | OGE_GetSprDrag (int iSprId) |
Check if the sprite can be dragged or not. | |
void | OGE_SetSprDrag (int iSprId, bool bValue) |
Set the sprite to be able to accept dragging or not. | |
bool | OGE_GetSprBusy (int iSprId) |
Check if the sprite is busy or not. | |
void | OGE_SetSprBusy (int iSprId, bool bValue) |
Set the sprite to be busy or not. | |
bool | OGE_GetSprDefaultDraw (int iSprId) |
Check if the sprite is drawn in the default way or not. | |
void | OGE_SetSprDefaultDraw (int iSprId, bool bValue) |
Set the sprite to use the default drawing way or not. | |
int | OGE_GetSprLightMap (int iSprId) |
Get the light map of the sprite. | |
void | OGE_SetSprLightMap (int iSprId, int iImageId) |
Set the light map of the sprite. | |
int | OGE_GetCollidedSpr (int iSprId) |
Get current collided sprite. | |
int | OGE_GetSprPlot (int iSprId) |
Get the plot sprite of current sprite. | |
void | OGE_SetSprPlot (int iSprId, int iPlotSprId) |
Bind a plot sprite to current sprite. | |
int | OGE_GetSprMaster (int iSprId) |
Get the master sprite of current sprite. | |
void | OGE_SetSprMaster (int iSprId, int iMasterSprId) |
Set the master sprite of current sprite. | |
int | OGE_GetReplacedSpr (int iSprId) |
Get the replaceable sprite of current sprite. | |
void | OGE_SetReplacedSpr (int iSprId, int iReplacedSprId) |
Set the replaceable sprite of current sprite. | |
int | OGE_GetSprParent (int iSprId) |
Get the parent sprite of current sprite. | |
int | OGE_SetSprParent (int iSprId, int iParentId, int iClientX, int iClientY) |
Set the parent sprite of current sprite. | |
int | OGE_GetRelatedSpr (int iSprId, int idx) |
Get the related sprite of current sprite. | |
void | OGE_SetRelatedSpr (int iSprId, int iRelatedSprId, int idx) |
Set the related sprite of current sprite. | |
int | OGE_GetRelatedGroup (int iSprId, int idx) |
Get the related group of current sprite. | |
void | OGE_SetRelatedGroup (int iSprId, int iRelatedGroupId, int idx) |
Set the related group of current sprite. | |
int | OGE_GetSprTileList (int iSprId) |
Get the tile list of current sprite. | |
void | OGE_PushEvent (int iSprId, int iCustomEventId) |
Fire a custom event of current sprite. | |
int | OGE_GetSprCurrentImage (int iSprId) |
Get current image of current sprite. | |
int | OGE_SetSprImage (int iSprId, int iImageId) |
Set the image of current sprite. | |
int | OGE_GetSprAnimationImg (int iSprId, int iDir, int iAct) |
Get the image of some animation of current sprite. | |
bool | OGE_SetSprAnimationImg (int iSprId, int iDir, int iAct, int iImageId) |
Set the image of some animation of current sprite. | |
void | OGE_MoveX (int iSprId, int iIncX) |
Move the sprite in x axis direction. | |
void | OGE_MoveY (int iSprId, int iIncY) |
Move the sprite in y axis direction. | |
int | OGE_SetDirection (int iSprId, int iDir) |
Set the direction of current sprite. | |
int | OGE_SetAction (int iSprId, int iAct) |
Set the action of current sprite. | |
int | OGE_SetAnimation (int iSprId, int iDir, int iAct) |
Set the animation of current sprite. | |
void | OGE_ResetAnimation (int iSprId) |
Reset current animation, set its current frame to be the first frame. | |
void | OGE_DrawSpr (int iSprId) |
Draw the sprite manually. | |
int | OGE_GetPosX (int iSprId) |
Get the x coordinate of the position of the sprite. | |
int | OGE_GetPosY (int iSprId) |
Get the y coordinate of the position of the sprite. | |
int | OGE_GetPosZ (int iSprId) |
Get the z coordinate of the position of the sprite. | |
void | OGE_SetPosXYZ (int iSprId, int iPosX, int iPosY, int iPosZ) |
Set the complete position of the sprite. | |
void | OGE_SetPos (int iSprId, int iPosX, int iPosY) |
Set the plane position of the sprite. | |
void | OGE_SetPosZ (int iSprId, int iPosZ) |
Set the z coordinate of the position of the sprite. | |
void | OGE_SetRelPos (int iSprId, int iRelativeX, int iRelativeY) |
Set the relative position of the sprite. | |
int | OGE_GetRelPosX (int iSprId) |
Get the x coordinate of the relative position of the sprite. | |
int | OGE_GetRelPosY (int iSprId) |
Get the y coordinate of the relative position of the sprite. | |
bool | OGE_GetRelMode (int iSprId) |
Check if the sprite is using relative position. | |
void | OGE_SetRelMode (int iSprId, bool bEnable) |
Enable or disable the relative position of the sprite. | |
int | OGE_GetSprRootX (int iSprId) |
Get the x coordinate of the origin of the sprite. | |
int | OGE_GetSprRootY (int iSprId) |
Get the y coordinate of the origin of the sprite. | |
int | OGE_GetSprWidth (int iSprId) |
Get the width of the sprite. | |
int | OGE_GetSprHeight (int iSprId) |
Get the height of the sprite. | |
void | OGE_SetSprDefaultRoot (int iSprId, int iRootX, int iRootY) |
Set the default position of the origin of the sprite. | |
void | OGE_SetSprDefaultSize (int iSprId, int iWidth, int iHeight) |
Set the default size of the sprite. | |
int | OGE_GetDirection (int iSprId) |
Get current direction of the sprite. | |
int | OGE_GetAction (int iSprId) |
Get current action of the sprite. | |
int | OGE_GetSprType (int iSprId) |
Get the sprite type. | |
int | OGE_GetSprClassTag (int iSprId) |
Get the class tag of the sprite. | |
int | OGE_GetSprTag (int iSprId) |
Get the tag of the sprite. | |
void | OGE_SetSprTag (int iSprId, int iTag) |
Set the tag of the sprite. | |
int | OGE_GetSprChildCount (int iSprId) |
Get the count of the children of the sprite. | |
int | OGE_GetSprChildByIndex (int iSprId, int iIndex) |
Get the child of the sprite by index. | |
int | OGE_AddEffect (int iSprId, int iEffectType, double fEffectValue) |
Attach an effect onto a sprite. | |
int | OGE_AddEffectEx (int iSprId, int iEffectType, double fStart, double fEnd, double fIncrement, int iStepInterval, int iRepeat) |
Attach a gradient effect onto a sprite. | |
int | OGE_RemoveEffect (int iSprId, int iEffectType) |
Remove effect from the sprite. | |
bool | OGE_HasEffect (int iSprId, int iEffectType) |
Check if the sprite has the effect or not. | |
bool | OGE_IsEffectCompleted (int iSprId, int iEffectType) |
Check if the effect is completed or not. | |
double | OGE_GetEffectValue (int iSprId, int iEffectType) |
Get value of an effect on a sprite. | |
double | OGE_GetEffectIncrement (int iSprId, int iEffectType) |
Get the increment value of an effect on a sprite. | |
int | OGE_GetLocalPath (int iSprId) |
Get the local path of the sprite. | |
int | OGE_UsePath (int iSprId, int iPathId, int iStepLength, bool bAutoStepping) |
Make the sprite to use some path. | |
int | OGE_UseLocalPath (int iSprId, int iStepLength, bool bAutoStepping) |
Make the sprite to use its local path. | |
int | OGE_NextPathStep (int iSprId) |
Let the sprite jump to next step of the path. | |
void | OGE_AbortPath (int iSprId) |
Let the sprite give up current path. | |
int | OGE_GetValidPathNodeCount (int iSprId) |
Get the count of the valid nodes in current path. | |
void | OGE_SetValidPathNodeCount (int iSprId, int iStepCount) |
Set the count of the valid nodes in current path. | |
bool | OGE_OpenTimer (int iSprId, int iInterval) |
Open the timer of the sprite. | |
void | OGE_CloseTimer (int iSprId) |
Close the timer of the sprite. | |
int | OGE_GetTimerInterval (int iSprId) |
Get the interval of the timer of the sprite. | |
bool | OGE_IsTimerWaiting (int iSprId) |
Check if the timer of the sprite is working or not. | |
void | OGE_SetScenePlot (int iSprId) |
Set the plot sprite of current scene. | |
void | OGE_PlayPlot (int iSprId, int iLoopTimes) |
Let the plot sprite play the plot in loops. | |
void | OGE_OpenPlot (int iSprId) |
Let the plot sprite start to play the plot. | |
void | OGE_ClosePlot (int iSprId) |
Let the plot sprite close the plot. | |
void | OGE_PausePlot (int iSprId) |
Let the plot sprite pause the plot. | |
void | OGE_ResumePlot (int iSprId) |
Let the plot sprite resume the plot. | |
bool | OGE_IsPlayingPlot (int iSprId) |
Check if the plot sprite is playing the plot. | |
int | OGE_GetPlotTriggerFlag (int iSprId, int iEventCode) |
Get the plot trigger flag of the plot sprite. | |
void | OGE_SetPlotTriggerFlag (int iSprId, int iEventCode, int iFlag) |
Set the plot trigger flag of the plot sprite. | |
int | OGE_GetSprGameData (int iSprId) |
Get the game data of the sprite. | |
int | OGE_GetSprCustomData (int iSprId) |
Get the custom data of the sprite. | |
void | OGE_SetSprCustomData (int iSprId, int iGameDataId, bool bOwnIt) |
Set the custom data of the sprite. | |
Variables | |
OGE_GetCurrentPath | |
Get the path which is used by the sprite currently. |
void OGE_AbortPath | ( | int | iSprId | ) |
Let the sprite give up current path.
[in] | iSprId | The ID of the sprite |
int OGE_AddEffect | ( | int | iSprId, |
int | iEffectType, | ||
double | fEffectValue | ||
) |
Attach an effect onto a sprite.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
[in] | fEffectValue | The effect value |
int OGE_AddEffectEx | ( | int | iSprId, |
int | iEffectType, | ||
double | fStart, | ||
double | fEnd, | ||
double | fIncrement, | ||
int | iStepInterval, | ||
int | iRepeat | ||
) |
Attach a gradient effect onto a sprite.
[in] | iSprId | The ID of the Sprite |
[in] | iEffectType | The effect type |
[in] | fStart | The start effect value |
[in] | fEnd | The target effect value |
[in] | fIncrement | The increment of effect value |
[in] | iStepInterval | The interval between every two steps |
[in] | iRepeat | Repeat times |
void OGE_ClosePlot | ( | int | iSprId | ) |
Let the plot sprite close the plot.
[in] | iSprId | The ID of the plot sprite |
void OGE_CloseTimer | ( | int | iSprId | ) |
Close the timer of the sprite.
[in] | iSprId | The ID of the sprite |
void OGE_DrawSpr | ( | int | iSprId | ) |
Draw the sprite manually.
[in] | iSprId | The ID of the sprite |
int OGE_GetAction | ( | int | iSprId | ) |
Get current action of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetCollidedSpr | ( | int | iSprId | ) |
Get current collided sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetDirection | ( | int | iSprId | ) |
Get current direction of the sprite.
[in] | iSprId | The ID of the sprite |
double OGE_GetEffectIncrement | ( | int | iSprId, |
int | iEffectType | ||
) |
Get the increment value of an effect on a sprite.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
double OGE_GetEffectValue | ( | int | iSprId, |
int | iEffectType | ||
) |
Get value of an effect on a sprite.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
int OGE_GetLocalPath | ( | int | iSprId | ) |
Get the local path of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetPlotTriggerFlag | ( | int | iSprId, |
int | iEventCode | ||
) |
Get the plot trigger flag of the plot sprite.
[in] | iSprId | The ID of the plot sprite |
[in] | iEventCode | The code of the event bound to the trigger |
int OGE_GetPosX | ( | int | iSprId | ) |
Get the x coordinate of the position of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetPosY | ( | int | iSprId | ) |
Get the y coordinate of the position of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetPosZ | ( | int | iSprId | ) |
Get the z coordinate of the position of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetRelatedGroup | ( | int | iSprId, |
int | idx | ||
) |
Get the related group of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | idx | The index of the related group |
int OGE_GetRelatedSpr | ( | int | iSprId, |
int | idx | ||
) |
Get the related sprite of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | idx | The index of the related sprite |
bool OGE_GetRelMode | ( | int | iSprId | ) |
Check if the sprite is using relative position.
[in] | iSprId | The ID of the sprite |
int OGE_GetRelPosX | ( | int | iSprId | ) |
Get the x coordinate of the relative position of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetRelPosY | ( | int | iSprId | ) |
Get the y coordinate of the relative position of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetReplacedSpr | ( | int | iSprId | ) |
Get the replaceable sprite of current sprite.
[in] | iSprId | The ID of current sprite |
int OGE_GetSpr | ( | ) |
Get current sprite.
bool OGE_GetSprActive | ( | int | iSprId | ) |
Check if the sprite is active or not.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprAnimationImg | ( | int | iSprId, |
int | iDir, | ||
int | iAct | ||
) |
Get the image of some animation of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iDir | The direction of the sprite |
[in] | iAct | The action of the sprite |
bool OGE_GetSprBusy | ( | int | iSprId | ) |
Check if the sprite is busy or not.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprChildByIndex | ( | int | iSprId, |
int | iIndex | ||
) |
Get the child of the sprite by index.
[in] | iSprId | The ID of the sprite |
[in] | iIndex | The index |
int OGE_GetSprChildCount | ( | int | iSprId | ) |
Get the count of the children of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprClassTag | ( | int | iSprId | ) |
Get the class tag of the sprite.
[in] | iSprId | The ID of the sprite |
bool OGE_GetSprCollide | ( | int | iSprId | ) |
Check if the sprite has collision detection or not.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprCurrentGroup | ( | int | iSprId | ) |
Get current group of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprCurrentImage | ( | int | iSprId | ) |
Get current image of current sprite.
[in] | iSprId | The ID of current sprite |
int OGE_GetSprCurrentScene | ( | int | iSprId | ) |
Get current scene of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprCustomData | ( | int | iSprId | ) |
Get the custom data of the sprite.
[in] | iSprId | The ID of the sprite |
bool OGE_GetSprDefaultDraw | ( | int | iSprId | ) |
Check if the sprite is drawn in the default way or not.
[in] | iSprId | The ID of the sprite |
bool OGE_GetSprDrag | ( | int | iSprId | ) |
Check if the sprite can be dragged or not.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprGameData | ( | int | iSprId | ) |
Get the game data of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprHeight | ( | int | iSprId | ) |
Get the height of the sprite.
[in] | iSprId | The ID of the sprite |
bool OGE_GetSprInput | ( | int | iSprId | ) |
Check if the sprite can accept the input from the player.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprLightMap | ( | int | iSprId | ) |
Get the light map of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprMaster | ( | int | iSprId | ) |
Get the master sprite of current sprite.
[in] | iSprId | The ID of current sprite |
string OGE_GetSprName | ( | int | iSprId | ) |
Get the name of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprParent | ( | int | iSprId | ) |
Get the parent sprite of current sprite.
[in] | iSprId | The ID of current sprite |
int OGE_GetSprPlot | ( | int | iSprId | ) |
Get the plot sprite of current sprite.
[in] | iSprId | The ID of current sprite |
int OGE_GetSprRootX | ( | int | iSprId | ) |
Get the x coordinate of the origin of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprRootY | ( | int | iSprId | ) |
Get the y coordinate of the origin of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprTag | ( | int | iSprId | ) |
Get the tag of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetSprTileList | ( | int | iSprId | ) |
Get the tile list of current sprite.
[in] | iSprId | The ID of currrent sprite |
int OGE_GetSprType | ( | int | iSprId | ) |
Get the sprite type.
[in] | iSprId | The ID of the sprite |
bool OGE_GetSprVisible | ( | int | iSprId | ) |
Check if the sprite is visible or not.
[in] | iSprId | The ID of the Sprite |
int OGE_GetSprWidth | ( | int | iSprId | ) |
Get the width of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetTimerInterval | ( | int | iSprId | ) |
Get the interval of the timer of the sprite.
[in] | iSprId | The ID of the sprite |
int OGE_GetValidPathNodeCount | ( | int | iSprId | ) |
Get the count of the valid nodes in current path.
[in] | iSprId | The ID of the sprite |
bool OGE_HasEffect | ( | int | iSprId, |
int | iEffectType | ||
) |
Check if the sprite has the effect or not.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
bool OGE_IsEffectCompleted | ( | int | iSprId, |
int | iEffectType | ||
) |
Check if the effect is completed or not.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
bool OGE_IsPlayingPlot | ( | int | iSprId | ) |
Check if the plot sprite is playing the plot.
[in] | iSprId | The ID of the plot sprite |
bool OGE_IsTimerWaiting | ( | int | iSprId | ) |
Check if the timer of the sprite is working or not.
[in] | iSprId | The ID of the sprite |
void OGE_MoveX | ( | int | iSprId, |
int | iIncX | ||
) |
Move the sprite in x axis direction.
[in] | iSprId | The ID of the sprite |
[in] | iIncX | The motion offset |
void OGE_MoveY | ( | int | iSprId, |
int | iIncY | ||
) |
Move the sprite in y axis direction.
[in] | iSprId | The ID of the sprite |
[in] | iIncY | The motion offset |
int OGE_NextPathStep | ( | int | iSprId | ) |
Let the sprite jump to next step of the path.
[in] | iSprId | The ID of the sprite who is using the path |
void OGE_OpenPlot | ( | int | iSprId | ) |
Let the plot sprite start to play the plot.
[in] | iSprId | The ID of the plot sprite |
bool OGE_OpenTimer | ( | int | iSprId, |
int | iInterval | ||
) |
Open the timer of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iInterval | The interval of the timer |
void OGE_PausePlot | ( | int | iSprId | ) |
Let the plot sprite pause the plot.
[in] | iSprId | The ID of the plot sprite |
void OGE_PlayPlot | ( | int | iSprId, |
int | iLoopTimes | ||
) |
Let the plot sprite play the plot in loops.
[in] | iSprId | The ID of the plot sprite |
[in] | iLoopTimes | How many rounds the plot will be played |
void OGE_PushEvent | ( | int | iSprId, |
int | iCustomEventId | ||
) |
Fire a custom event of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iCustomEventId | The ID of the custom event |
int OGE_RemoveEffect | ( | int | iSprId, |
int | iEffectType | ||
) |
Remove effect from the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iEffectType | The effect type |
void OGE_ResetAnimation | ( | int | iSprId | ) |
Reset current animation, set its current frame to be the first frame.
[in] | iSprId | The ID of the sprite |
void OGE_ResumePlot | ( | int | iSprId | ) |
Let the plot sprite resume the plot.
[in] | iSprId | The ID of the plot sprite |
int OGE_SetAction | ( | int | iSprId, |
int | iAct | ||
) |
Set the action of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iAct | The action |
int OGE_SetAnimation | ( | int | iSprId, |
int | iDir, | ||
int | iAct | ||
) |
Set the animation of current sprite.
[in] | iSprId | The ID of the sprite |
[in] | iDir | The direction |
[in] | iAct | The action |
int OGE_SetDirection | ( | int | iSprId, |
int | iDir | ||
) |
Set the direction of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iDir | The direction |
void OGE_SetPlotTriggerFlag | ( | int | iSprId, |
int | iEventCode, | ||
int | iFlag | ||
) |
Set the plot trigger flag of the plot sprite.
[in] | iSprId | The ID of the plot sprite |
[in] | iEventCode | The code of the event bound to the trigger |
[in] | iFlag | The trigger flag |
void OGE_SetPos | ( | int | iSprId, |
int | iPosX, | ||
int | iPosY | ||
) |
Set the plane position of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iPosX | The x coordinate of the position |
[in] | iPosY | The y coordinate of the position |
void OGE_SetPosXYZ | ( | int | iSprId, |
int | iPosX, | ||
int | iPosY, | ||
int | iPosZ | ||
) |
Set the complete position of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iPosX | The x coordinate of the position |
[in] | iPosY | The y coordinate of the position |
[in] | iPosZ | The z coordinate of the position |
void OGE_SetPosZ | ( | int | iSprId, |
int | iPosZ | ||
) |
Set the z coordinate of the position of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iPosZ | The z coordinate of the position |
void OGE_SetRelatedGroup | ( | int | iSprId, |
int | iRelatedGroupId, | ||
int | idx | ||
) |
Set the related group of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iRelatedGroupId | The ID of the related group |
[in] | idx | The index of the related group |
void OGE_SetRelatedSpr | ( | int | iSprId, |
int | iRelatedSprId, | ||
int | idx | ||
) |
Set the related sprite of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iRelatedSprId | The ID of the related sprite |
[in] | idx | The index of the related sprite |
void OGE_SetRelMode | ( | int | iSprId, |
bool | bEnable | ||
) |
Enable or disable the relative position of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | bEnable | Enable or disable the relative position |
void OGE_SetRelPos | ( | int | iSprId, |
int | iRelativeX, | ||
int | iRelativeY | ||
) |
Set the relative position of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iRelativeX | The x coordinate of the relative position |
[in] | iRelativeY | The y coordinate of the relative position |
void OGE_SetReplacedSpr | ( | int | iSprId, |
int | iReplacedSprId | ||
) |
Set the replaceable sprite of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iReplacedSprId | The ID of the replaceable sprite |
void OGE_SetScenePlot | ( | int | iSprId | ) |
Set the plot sprite of current scene.
[in] | iSprId | The ID of the plot sprite |
void OGE_SetSprActive | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to be active or deactive.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Active or not |
bool OGE_SetSprAnimationImg | ( | int | iSprId, |
int | iDir, | ||
int | iAct, | ||
int | iImageId | ||
) |
Set the image of some animation of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iDir | Which direction does the animation bind to |
[in] | iAct | Which action does the animation bind to |
[in] | iImageId | The ID of the image |
void OGE_SetSprBusy | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to be busy or not.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Be busy or not |
void OGE_SetSprCollide | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to get or give up collision detection.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Get or give up collision detection |
void OGE_SetSprCustomData | ( | int | iSprId, |
int | iGameDataId, | ||
bool | bOwnIt | ||
) |
Set the custom data of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iGameDataId | The ID of the data |
[in] | bOwnIt | Let the sprite own the data or not |
void OGE_SetSprDefaultDraw | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to use the default drawing way or not.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Use the default drawing way or not |
void OGE_SetSprDefaultRoot | ( | int | iSprId, |
int | iRootX, | ||
int | iRootY | ||
) |
Set the default position of the origin of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iRootX | The x coordinate of the default origin position |
[in] | iRootY | The y coordinate of the default origin position |
void OGE_SetSprDefaultSize | ( | int | iSprId, |
int | iWidth, | ||
int | iHeight | ||
) |
Set the default size of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iWidth | The default width of the sprite |
[in] | iHeight | The default height of the sprite |
void OGE_SetSprDrag | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to be able to accept dragging or not.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Be able to accept dragging or not |
int OGE_SetSprImage | ( | int | iSprId, |
int | iImageId | ||
) |
Set the image of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iImageId | The ID of the image |
void OGE_SetSprInput | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to be able to accept input or not.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Be able to accept input or not |
void OGE_SetSprLightMap | ( | int | iSprId, |
int | iImageId | ||
) |
Set the light map of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iImageId | The image ID of the light map |
void OGE_SetSprMaster | ( | int | iSprId, |
int | iMasterSprId | ||
) |
Set the master sprite of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iMasterSprId | The ID of the master sprite |
int OGE_SetSprParent | ( | int | iSprId, |
int | iParentId, | ||
int | iClientX, | ||
int | iClientY | ||
) |
Set the parent sprite of current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iParentId | The ID of the parent sprite |
[in] | iClientX | The x coordinate relative to the parent |
[in] | iClientY | The y coordinate relative to the parent |
void OGE_SetSprPlot | ( | int | iSprId, |
int | iPlotSprId | ||
) |
Bind a plot sprite to current sprite.
[in] | iSprId | The ID of current sprite |
[in] | iPlotSprId | The ID of the plot sprite |
void OGE_SetSprTag | ( | int | iSprId, |
int | iTag | ||
) |
Set the tag of the sprite.
[in] | iSprId | The ID of the sprite |
[in] | iTag | The tag |
void OGE_SetSprVisible | ( | int | iSprId, |
bool | bValue | ||
) |
Set the sprite to be visible or invisible.
[in] | iSprId | The ID of the sprite |
[in] | bValue | Visible or invisible |
void OGE_SetValidPathNodeCount | ( | int | iSprId, |
int | iStepCount | ||
) |
Set the count of the valid nodes in current path.
[in] | iSprId | The ID of the sprite |
[in] | iStepCount | The count of the valid nodes |
int OGE_UseLocalPath | ( | int | iSprId, |
int | iStepLength, | ||
bool | bAutoStepping | ||
) |
Make the sprite to use its local path.
[in] | iSprId | The ID of the sprite |
[in] | iStepLength | The length of the step |
[in] | bAutoStepping | Allow auto stepping or not |
int OGE_UsePath | ( | int | iSprId, |
int | iPathId, | ||
int | iStepLength, | ||
bool | bAutoStepping | ||
) |
Make the sprite to use some path.
[in] | iSprId | The ID of the sprite |
[in] | iPathId | The ID of the path |
[in] | iStepLength | The length of the step |
[in] | bAutoStepping | Allow auto stepping or not |
Get the path which is used by the sprite currently.