|
Open Game Engine 2D API
|
函数 | |
| int | OGE_ResetPath (int iSprId, int iStepLength, bool bAutoStepping) |
| 重置路径 | |
| int | OGE_GetPathNodeIndex (int iSprId) |
| 取得精灵正在使用的路径的当前节点的序号 | |
| int | OGE_GetPathStepLength (int iSprId) |
| 取得精灵正在使用的路径的步长 | |
| void | OGE_SetPathStepLength (int iSprId, int iStepLength) |
| 设置精灵正在使用的路径的步长 | |
| int | OGE_GetPathStepInterval (int iSprId) |
| 取得精灵正在使用的路径的步进时间间隔 | |
| void | OGE_SetPathStepInterval (int iSprId, int iStepInterval) |
| 设置精灵正在使用的路径的步进时间间隔 | |
| int | OGE_GetPathDirection (int iSprId) |
| 取得精灵正在使用的路径的当前朝向 | |
| int | OGE_GetPath (string sPathName) |
| 根据路径的名称取得路径对象 | |
| int | OGE_GetPathByCode (int iCode) |
| 根据路径的代号取得路径对象 | |
| void | OGE_PathGenLine (int iPathId, int x1, int y1, int x2, int y2) |
| 根据所给出的起点和终点自动生成一条直线,并使用直线的像素点作为路径的所有节点 | |
| void | OGE_PathGenExtLine (int iPathId, int iSrcX, int iSrcY, int iDstX, int iDstY, int iExtraWidth, int iExtraHeight) |
| 根据给出的起点终点,生成一条直线路径,路径的终点在屏幕的边缘之外 | |
| int | OGE_GetPathNodeCount (int iPathId) |
| 取得路径中所有节点的总数量 | |
| int OGE_GetPath | ( | string | sPathName | ) |
根据路径的名称取得路径对象
| [in] | sPathName | 路径的名称 |
| int OGE_GetPathByCode | ( | int | iCode | ) |
根据路径的代号取得路径对象
| [in] | iCode | 路径的代号 |
| int OGE_GetPathDirection | ( | int | iSprId | ) |
取得精灵正在使用的路径的当前朝向
| [in] | iSprId | 精灵的ID |
| int OGE_GetPathNodeCount | ( | int | iPathId | ) |
取得路径中所有节点的总数量
| [in] | iPathId | 路径ID |
| int OGE_GetPathNodeIndex | ( | int | iSprId | ) |
取得精灵正在使用的路径的当前节点的序号
| [in] | iSprId | 精灵的ID |
| int OGE_GetPathStepInterval | ( | int | iSprId | ) |
取得精灵正在使用的路径的步进时间间隔
| [in] | iSprId | 精灵的ID |
| int OGE_GetPathStepLength | ( | int | iSprId | ) |
取得精灵正在使用的路径的步长
| [in] | iSprId | 精灵的ID |
| void OGE_PathGenExtLine | ( | int | iPathId, |
| int | iSrcX, | ||
| int | iSrcY, | ||
| int | iDstX, | ||
| int | iDstY, | ||
| int | iExtraWidth, | ||
| int | iExtraHeight | ||
| ) |
根据给出的起点终点,生成一条直线路径,路径的终点在屏幕的边缘之外
| [in] | iPathId | 路径的ID |
| [in] | iSrcX | 直线起点的X坐标 |
| [in] | iSrcY | 直线起点的Y坐标 |
| [in] | iDstX | 直线终点的X坐标 |
| [in] | iDstY | 直线终点的Y坐标 |
| [in] | iExtraWidth | 超出屏幕部分区域的宽度 |
| [in] | iExtraHeight | 超出屏幕部分区域的高度 |
| void OGE_PathGenLine | ( | int | iPathId, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
根据所给出的起点和终点自动生成一条直线,并使用直线的像素点作为路径的所有节点
| [in] | iPathId | 路径的ID |
| [in] | x1 | 直线起点的X坐标 |
| [in] | y1 | 直线起点的Y坐标 |
| [in] | x2 | 直线终点的X坐标 |
| [in] | y2 | 直线终点的Y坐标 |
| int OGE_ResetPath | ( | int | iSprId, |
| int | iStepLength, | ||
| bool | bAutoStepping | ||
| ) |
重置路径
| [in] | iSprId | 精灵的ID |
| [in] | iStepLength | 路径的步长 |
| [in] | bAutoStepping | 是否使用自动步进 |
| void OGE_SetPathStepInterval | ( | int | iSprId, |
| int | iStepInterval | ||
| ) |
设置精灵正在使用的路径的步进时间间隔
| [in] | iSprId | 精灵的ID |
| [in] | iStepInterval | 路径的步进时间间隔 |
| void OGE_SetPathStepLength | ( | int | iSprId, |
| int | iStepLength | ||
| ) |
设置精灵正在使用的路径的步长
| [in] | iSprId | 精灵的ID |
| [in] | iStepLength | 路径的步长 |
1.8.0