NDSummary.OnToolTipsLoaded("File:game/pawn.h",{198:"
void Pawn_Initialize(
Pawn* pawn,
const Pawn_Sprite* sprtList,
u8 sprtNum,
u8 sprtID,
const Pawn_Action* actList
)
Initialize a game pawn.
",199:"
void Pawn_SetPosition(
Pawn* pawn,
PAWN_POS x,
PAWN_POS y
)
Set game pawn position. Force movement even if collision is activated.
",200:"
inline PAWN_POS Pawn_GetPositionX(
Pawn* pawn
)
Get the X coordinate of the pawn\'s position.
",201:"
inline PAWN_POS Pawn_GetPositionY(
Pawn* pawn
)
Get the Y coordinate of the pawn\'s position.
",202:"
void Pawn_ForceSetAction(
Pawn* pawn,
u8 id
)
Force to set game pawn action id.
",203:"
void Pawn_SetAction(
Pawn* pawn,
u8 id
)
Set game pawn current action index.
",204:"
inline void Pawn_RestartAction(
Game_Pawn* pawn
)
Restart the current action.
",205:"
inline u8 Pawn_GetAction(
Pawn* pawn
)
Get the current action ID of the pawn.
",206:"
inline void Pawn_SetTileMap(
const u8* map
)
Set the tile map to be used for collision.  Available only when PAWN_TILEMAP_SRC is set to PAWN_TILEMAP_SRC_RAM.
",207:"
void Pawn_SetEnable(
Pawn* pawn,
bool enable
)
Set if pawn is enable or disable. Disabled pawn will not be updated nor drawn.
",208:"
inline void Pawn_Disable(
Pawn* pawn
)
Disable a pawn. Disabled pawn will not be updated nor drawn.
",209:"
inline void Pawn_Enable(
Pawn* pawn
)
Enable a pawn. Enabled pawn will be updated and drawn.
",210:"
void Pawn_Update(
Pawn* pawn
)
Update animation of the game pawn. Must be called once a frame.
",211:"
inline void Pawn_SetDirty(
Pawn* pawn
)
Mark the pawn as dirty. This will force the pawn to be redrawn.
",212:"
inline void Pawn_SetColorBlend(
Pawn* pawn,
bool enable
)
Enable or disable sprite color blending effect.
",213:"
void Pawn_Draw(
Pawn* pawn
)
Update rendering of the game pawn. Must be called once a frame.
",214:"
inline void Pawn_SetPatternAddress(
Pawn* pawn,
const voidaddr
)
Set the base address of the sprite pattern data.  Only available if PAWN_USE_RT_LOAD compile option is set to TRUE.
",215:"
inline void Pawn_SetSpriteFX(
Pawn* pawn,
u8 fx
)
Set sprite effect.  Only available if PAWN_USE_RT_LOAD and PAWN_USE_SPRT_FX compile options are set to TRUE.
",217:"
void Pawn_SetMovement(
Pawn* pawn,
i8 dx,
i8 dy
)
Set pawn relative movement. Collision can prevent part of the movement.  Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
",218:"
inline void Pawn_SetTargetPosition(
Pawn* pawn,
PAWN_POS x,
PAWN_POS y
)
Set pawn absolute movement. Collision can prevent part of the movement.  Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
",219:"
Set pawn physics callback Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
",220:"
inline u8 Pawn_GetPhysicsState(
Pawn* pawn
)
Get pawn physics state.  Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
",221:"
inline const u8 Pawn_GetCallbackCellX()
Get the X coordinate of the cell that triggered a callback.  The value is only valid within a callback.  Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
",222:"
inline const u8 Pawn_GetCallbackCellY()
Get the Y coordinate of the cell that triggered a callback.  The value is only valid within a callback.  Only available if PAWN_USE_PHYSICS compile option is set to TRUE.
"});