|
Cavestory Mod API
|
Casting game rays. More...
Functions | |
| CAVESTORY_MOD_API BOOL | CSM_Raycasting_CastRay (GUI_POINT pPointStart, GUI_POINT pPointEnd, RAYCAST_QUERY *pInfo=NULL, bool bHitEndBlock=true, bool bHitStartBlock=true) |
| Cast a ray in the game world. More... | |
| CAVESTORY_MOD_API BOOL | CSM_Raycasting_CastRay_Quick (int iStartX, int iStartY, int iEndX, int iEndY, unsigned int iHitMask, RAYCAST_QUERY *pInfo=NULL, bool bHitEndBlock=true, bool bHitStartBlock=true) |
| Cast a ray in the game world, but faster. More... | |
| CAVESTORY_MOD_API void | CSM_Raycasting_SetBounds (GUI_RECT *pRect) |
| Setup raycasting bounds. More... | |
Casting game rays.
Game raycasting functions.
| CAVESTORY_MOD_API BOOL CSM_Raycasting_CastRay | ( | GUI_POINT | pPointStart, |
| GUI_POINT | pPointEnd, | ||
| RAYCAST_QUERY * | pInfo = NULL, |
||
| bool | bHitEndBlock = true, |
||
| bool | bHitStartBlock = true |
||
| ) |
Cast a ray in the game world.
| pPointStart | The ray's start point. |
| pPointEnd | The ray's end point. |
| pInfo | A pointer to a RAYCAST_QUERY object that will store the results of the raycast. Can be NULL. |
| bHitEndBlock | Whether to hit the end block. |
| bHitStartBlock | Whether to hit the start block. |
| CAVESTORY_MOD_API BOOL CSM_Raycasting_CastRay_Quick | ( | int | iStartX, |
| int | iStartY, | ||
| int | iEndX, | ||
| int | iEndY, | ||
| unsigned int | iHitMask, | ||
| RAYCAST_QUERY * | pInfo = NULL, |
||
| bool | bHitEndBlock = true, |
||
| bool | bHitStartBlock = true |
||
| ) |
Cast a ray in the game world, but faster.
| iStartX | The starting subpixel X coordinate. |
| iStartY | The starting subpixel Y coordinate. |
| iEndX | The ending subpixel X coordinate. |
| iEndY | The ending subpixel Y coordinate. |
| iHitMask | The TileType mask to hit. |
| pInfo | A pointer to a RAYCAST_QUERY object that will store the results of the raycast. Can be NULL. |
| bHitEndBlock | Whether to hit the end block. |
| bHitStartBlock | Whether to hit the start block. |
| CAVESTORY_MOD_API void CSM_Raycasting_SetBounds | ( | GUI_RECT * | pRect | ) |
Setup raycasting bounds.
Set the raycasting bounds. Casted rays cannot exceed these bounds.
| pRect | The bounds to use. If set to NULL, rays will not be bound. |