NDSummary.OnToolTipsLoaded("File:game_pawn.h",{1115:"
void GamePawn_Initialize(
Game_Pawn* pawn,
const Game_Sprite* sprtList,
u8 sprtNum,
u8 sprtID,
const Game_Action* actList
)
Initialize a game pawn.
",1116:"
void GamePawn_SetPosition(
Game_Pawn* pawn,
u8 x,
u8 y
)
Set game pawn position. Force movement even if collision is activated.
",1117:"
void GamePawn_SetAction(
Game_Pawn* pawn,
u8 id
)
Set game pawn current action index.
",1118:"
inline void GamePawn_SetTileMap(
const u8* map
)
Set the tile map to be used for collision.  Available only when GAMEPAWN_TILEMAP_SRC is set to GAMEPAWN_TILEMAP_SRC_RAM.
",1119:"
void GamePawn_SetEnable(
Game_Pawn* pawn,
bool enable
)
Set if pawn is enable or disable. Disabled pawn will not be updated nor drawn.
",1120:"
inline void GamePawn_Disable(
Game_Pawn* pawn
)
Disable a pawn. Disabled pawn will not be updated nor drawn.
",1121:"
inline void GamePawn_Enable(
Game_Pawn* pawn
)
Enable a pawn. Enabled pawn will be updated and drawn.
",1122:"
void GamePawn_Update(
Game_Pawn* pawn
)
Update animation of the game pawn. Must be called once a frame.
",1123:"
void GamePawn_Draw(
Game_Pawn* pawn
)
Update rendering of the game pawn. Must be called once a frame.
",1125:"
void GamePawn_SetMovement(
Game_Pawn* pawn,
i8 dx,
i8 dy
)
Set pawn relative movement. Collision can prevent part of the movement.  Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
",1126:"
inline void GamePawn_SetTargetPosition(
Game_Pawn* pawn,
u8 x,
u8 y
)
Set pawn absolute movement. Collision can prevent part of the movement.  Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
",1127:"
Set pawn physics callback Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
",1128:"
inline u8 GamePawn_GetPhysicsState(
Game_Pawn* pawn
)
Get pawn physics state.  Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
",1129:"
inline const u8 GamePawn_GetCallbackCellX()
Get the X coordinate of the cell that triggered a callback.  The value is only valid within a callback.  Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
",1130:"
inline const u8 GamePawn_GetCallbackCellY()
Get the Y coordinate of the cell that triggered a callback.  The value is only valid within a callback.  Only available if GAMEPAWN_USE_PHYSICS compile option is set to TRUE.
"});