Open Game Engine 2D API
|
Functions | |
void | OGE_FreezeSprites (bool bValue) |
Freeze or resume player and NPC sprites in current scene. | |
int | OGE_SetSceneMap (int iSceneId, string sNewMap, int iNewLeft, int iNewTop) |
Set the map of the scene. | |
int | OGE_FindSceneSpr (int iSceneId, string sSprName) |
Find a sprite by name in a scene. | |
int | OGE_GetFocusSpr () |
Get the focus sprite of current scene. | |
int | OGE_GetModalSpr () |
Get the modal sprite of current scene. | |
void | OGE_SetFocusSpr (int iSprId) |
Set the focus sprite of current scene. | |
void | OGE_SetModalSpr (int iSprId) |
Set the modal sprite of current scene. | |
int | OGE_GetMouseSpr () |
Get the mouse sprite of current scene. | |
void | OGE_SetMouseSpr (int iSprId) |
Set the mouse sprite of current scene. | |
int | OGE_GetFirstSpr () |
Get the first sprite of current scene. | |
void | OGE_SetFirstSpr (int iSprId) |
Set the first sprite of current scene. | |
int | OGE_GetLastSpr () |
Get the last sprite of current scene. | |
void | OGE_SetLastSpr (int iSprId) |
Set the last sprite of current. | |
int | OGE_GetProxySpr () |
Get the proxy sprite of current. | |
void | OGE_SetProxySpr (int iSprId) |
Set the proxy sprite of current scene. | |
int | OGE_GetTopZ () |
Get the max value of the z coordinate of the sprites in current scene. | |
int | OGE_BringSprToTop (int iSprId) |
Bring the sprite to the top layer of current scene. | |
int | OGE_GetSceneSpr (int idx) |
Get a sprite in current scene by index. | |
int | OGE_GetDefaultPlayerSpr () |
Get the default player sprite in current scene. | |
void | OGE_SetDefaultPlayerSpr (int iSprId) |
Set the default sprite in current scene. | |
int | OGE_GetSceneLightMap (int iSceneId) |
Get the light map image of the scene. | |
int | OGE_SetSceneLightMap (int iSceneId, int iImageId, int iLightMode) |
Set the light map of the scene. | |
bool | OGE_OpenSceneTimer (int iInterval) |
Open the timer of current scene. | |
void | OGE_CloseSceneTimer () |
Close the timer of current scene. | |
int | OGE_GetSceneTimerInterval () |
Get the interval of the timer of current scene. | |
bool | OGE_IsSceneTimerWaiting () |
Check if the timer of current scene is working or not. | |
int | OGE_GetScenePlot () |
Get the ID of the plot sprite of current scene. | |
int | OGE_GetSceneCustomData (int iSceneId) |
Get the custom data of the scene. | |
void | OGE_SetSceneCustomData (int iSceneId, int iGameDataId, bool bOwnIt) |
Set the custom data of the scene. | |
int | OGE_SetSceneBgMusic (int iSceneId, string sMusicName) |
Set background music of current scene. | |
int | OGE_PlayBgMusic (int iLoopTimes) |
Play the background music. | |
int | OGE_GetSceneSprCount (int iSceneId, int iState) |
Get the count of all the sprites with special state in the scene. | |
int | OGE_GetSceneSprByIndex (int iSceneId, int iIndex, int iState) |
Get the sprite with special state in the scene by index. | |
int | OGE_GetSceneCount () |
Get the count of all the scenes. | |
int | OGE_GetSceneByIndex (int iIndex) |
Get the scene by index. | |
int | OGE_GetSprForScene (int iSceneId, string sSprName, string sClassName) |
Create a sprite with specified template, and add it to the scene. | |
int | OGE_RemoveSprFromScene (int iSceneId, int iSprId) |
Remove a sprite from the scene. | |
void | OGE_RemoveScene (string sName) |
Remove a scene by name. | |
int | OGE_GetScene () |
Get current scene. | |
int | OGE_GetActiveScene () |
Get current active scene. | |
int | OGE_GetLastActiveScene () |
Get the last active scene. | |
int | OGE_GetNextActiveScene () |
Get the next active scene. | |
int | OGE_GetSceneByName (string sSceneName) |
Get the scene by name. | |
int | OGE_FindScene (string sSceneName) |
Find the scene by name. | |
string | OGE_GetSceneName (int iSceneId) |
Get the name of the scene. | |
string | OGE_GetSceneChapter (int iSceneId) |
Get the chapter name of the scene. | |
void | OGE_SetSceneChapter (int iSceneId, string sChapterName) |
Set the chapter name of the scene. | |
string | OGE_GetSceneTag (int iSceneId) |
Get the tag name of the scene. | |
void | OGE_SetSceneTag (int iSceneId, string sTagName) |
Set the tag name of the scene. | |
int | OGE_GetSceneGameData (int iSceneId) |
Get the default data of the scene. | |
string | OGE_GetSceneBgMusic (int iSceneId) |
Get the background music name of the scene. | |
int | OGE_GetSceneTime () |
Get the elapsed time of the scene. | |
int | OGE_CallScene (string sSceneName) |
Jump to next scene by name. | |
int | OGE_SetSceneFadeIn (int iSceneId, int iType, int iSpeed) |
Set the fade in action of the scene. | |
int | OGE_SetSceneFadeOut (int iSceneId, int iType, int iSpeed) |
Set the fade out action of the scene. | |
int | OGE_SetSceneFadeMask (int iSceneId, int iImageId) |
Set the mask image for the transaction effect in fade-in fade-out. |
int OGE_BringSprToTop | ( | int | iSprId | ) |
Bring the sprite to the top layer of current scene.
[in] | iSprId | The ID of the sprite |
int OGE_CallScene | ( | string | sSceneName | ) |
Jump to next scene by name.
[in] | sSceneName | The name of next scene |
int OGE_FindScene | ( | string | sSceneName | ) |
Find the scene by name.
[in] | sSceneName | The name of the scene |
int OGE_FindSceneSpr | ( | int | iSceneId, |
string | sSprName | ||
) |
Find a sprite by name in a scene.
[in] | iSceneId | The ID of the scene |
[in] | sSprName | The name of the sprite |
void OGE_FreezeSprites | ( | bool | bValue | ) |
Freeze or resume player and NPC sprites in current scene.
[in] | bValue | If true then freeze the sprites else unfreeze them |
int OGE_GetActiveScene | ( | ) |
Get current active scene.
int OGE_GetDefaultPlayerSpr | ( | ) |
Get the default player sprite in current scene.
int OGE_GetFirstSpr | ( | ) |
Get the first sprite of current scene.
int OGE_GetFocusSpr | ( | ) |
Get the focus sprite of current scene.
int OGE_GetLastActiveScene | ( | ) |
Get the last active scene.
int OGE_GetLastSpr | ( | ) |
Get the last sprite of current scene.
int OGE_GetModalSpr | ( | ) |
Get the modal sprite of current scene.
int OGE_GetMouseSpr | ( | ) |
Get the mouse sprite of current scene.
int OGE_GetNextActiveScene | ( | ) |
Get the next active scene.
int OGE_GetProxySpr | ( | ) |
Get the proxy sprite of current.
int OGE_GetScene | ( | ) |
Get current scene.
string OGE_GetSceneBgMusic | ( | int | iSceneId | ) |
Get the background music name of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetSceneByIndex | ( | int | iIndex | ) |
Get the scene by index.
[in] | iIndex | The index of the scene |
int OGE_GetSceneByName | ( | string | sSceneName | ) |
Get the scene by name.
[in] | sSceneName | The name of the scene |
string OGE_GetSceneChapter | ( | int | iSceneId | ) |
Get the chapter name of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetSceneCount | ( | ) |
Get the count of all the scenes.
int OGE_GetSceneCustomData | ( | int | iSceneId | ) |
Get the custom data of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetSceneGameData | ( | int | iSceneId | ) |
Get the default data of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetSceneLightMap | ( | int | iSceneId | ) |
Get the light map image of the scene.
[in] | iSceneId | The ID of the scene |
string OGE_GetSceneName | ( | int | iSceneId | ) |
Get the name of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetScenePlot | ( | ) |
Get the ID of the plot sprite of current scene.
int OGE_GetSceneSpr | ( | int | idx | ) |
Get a sprite in current scene by index.
[in] | idx | The index of the sprite in current scene |
int OGE_GetSceneSprByIndex | ( | int | iSceneId, |
int | iIndex, | ||
int | iState | ||
) |
Get the sprite with special state in the scene by index.
[in] | iSceneId | The ID of the scene |
[in] | iIndex | The index |
[in] | iState | The state |
int OGE_GetSceneSprCount | ( | int | iSceneId, |
int | iState | ||
) |
Get the count of all the sprites with special state in the scene.
[in] | iSceneId | The ID of the scene |
[in] | iState | The state |
string OGE_GetSceneTag | ( | int | iSceneId | ) |
Get the tag name of the scene.
[in] | iSceneId | The ID of the scene |
int OGE_GetSceneTime | ( | ) |
Get the elapsed time of the scene.
int OGE_GetSceneTimerInterval | ( | ) |
Get the interval of the timer of current scene.
int OGE_GetSprForScene | ( | int | iSceneId, |
string | sSprName, | ||
string | sClassName | ||
) |
Create a sprite with specified template, and add it to the scene.
[in] | iSceneId | The ID of the scene |
[in] | sSprName | The name of the sprite |
[in] | sClassName | The name of the template |
int OGE_GetTopZ | ( | ) |
Get the max value of the z coordinate of the sprites in current scene.
bool OGE_IsSceneTimerWaiting | ( | ) |
Check if the timer of current scene is working or not.
bool OGE_OpenSceneTimer | ( | int | iInterval | ) |
Open the timer of current scene.
[in] | iInterval | The interval of the timer |
int OGE_PlayBgMusic | ( | int | iLoopTimes | ) |
Play the background music.
[in] | iLoopTimes | The play times |
void OGE_RemoveScene | ( | string | sName | ) |
Remove a scene by name.
[in] | sName | The name of the scene |
int OGE_RemoveSprFromScene | ( | int | iSceneId, |
int | iSprId | ||
) |
Remove a sprite from the scene.
[in] | iSceneId | The ID of the scene |
[in] | iSprId | The ID of the sprite |
void OGE_SetDefaultPlayerSpr | ( | int | iSprId | ) |
Set the default sprite in current scene.
[in] | iSprId | The ID of the sprite |
void OGE_SetFirstSpr | ( | int | iSprId | ) |
Set the first sprite of current scene.
[in] | iSprId | The ID of the first sprite |
void OGE_SetFocusSpr | ( | int | iSprId | ) |
Set the focus sprite of current scene.
[in] | iSprId | The ID of the sprite |
void OGE_SetLastSpr | ( | int | iSprId | ) |
Set the last sprite of current.
[in] | iSprId | The ID of the sprite |
void OGE_SetModalSpr | ( | int | iSprId | ) |
Set the modal sprite of current scene.
[in] | iSprId | The ID of the sprite |
void OGE_SetMouseSpr | ( | int | iSprId | ) |
Set the mouse sprite of current scene.
[in] | iSprId | The ID of the sprite |
void OGE_SetProxySpr | ( | int | iSprId | ) |
Set the proxy sprite of current scene.
[in] | iSprId | The ID of the sprite |
int OGE_SetSceneBgMusic | ( | int | iSceneId, |
string | sMusicName | ||
) |
Set background music of current scene.
[in] | iSceneId | The ID of the scene |
[in] | sMusicName | The name of the music |
void OGE_SetSceneChapter | ( | int | iSceneId, |
string | sChapterName | ||
) |
Set the chapter name of the scene.
[in] | iSceneId | The ID of the scene |
[in] | sChapterName | The name of the chapter |
void OGE_SetSceneCustomData | ( | int | iSceneId, |
int | iGameDataId, | ||
bool | bOwnIt | ||
) |
Set the custom data of the scene.
[in] | iSceneId | The ID of the scene |
[in] | iGameDataId | The ID of the data |
[in] | bOwnIt | Let the scene own the data or not |
int OGE_SetSceneFadeIn | ( | int | iSceneId, |
int | iType, | ||
int | iSpeed | ||
) |
Set the fade in action of the scene.
[in] | iSceneId | The ID of the scene |
[in] | iType | The type of fading effect |
[in] | iSpeed | The speed of fading |
int OGE_SetSceneFadeMask | ( | int | iSceneId, |
int | iImageId | ||
) |
Set the mask image for the transaction effect in fade-in fade-out.
[in] | iSceneId | The ID of the scene |
[in] | iImageId | The ID of the mask image |
int OGE_SetSceneFadeOut | ( | int | iSceneId, |
int | iType, | ||
int | iSpeed | ||
) |
Set the fade out action of the scene.
[in] | iSceneId | The ID of the scene |
[in] | iType | The type of the fading effect |
[in] | iSpeed | The speed of fading |
int OGE_SetSceneLightMap | ( | int | iSceneId, |
int | iImageId, | ||
int | iLightMode | ||
) |
Set the light map of the scene.
[in] | iSceneId | The ID of the scene |
[in] | iImageId | The ID of the image of the light map |
[in] | iLightMode | The light mode |
int OGE_SetSceneMap | ( | int | iSceneId, |
string | sNewMap, | ||
int | iNewLeft, | ||
int | iNewTop | ||
) |
Set the map of the scene.
[in] | iSceneId | The scene ID |
[in] | sNewMap | The name of the map |
[in] | iNewLeft | The x coordinate of the viewport position |
[in] | iNewTop | The y coordinate of the viewport position |
void OGE_SetSceneTag | ( | int | iSceneId, |
string | sTagName | ||
) |
Set the tag name of the scene.
[in] | iSceneId | The ID of the scene |
[in] | sTagName | The tag name |