context.c
An actor's screen position, the encounter transition, context effects.
games/tbs/src/object/psynergy_effects/context.c on GitHub
An actor's screen position, the encounter transition, context effects. Part of psynergy_effects.c, compiled only through it.
Functions
Object_GetScreenPosition
s32 Object_GetScreenPosition(s32 objectId, s32 *position)
Finds where an actor is on screen: position[0] and position[1] receive its x and y in pixels, y at the top of its sprite. Returns 0, or -1 if there is no such actor. Called by the message window code in messages.c to place a speaker's bubble, and through Object_GetScreenPositionFar by the window frames to open a message window above or below the leader.
Used by Event_ShowSpeakerMessage, UiText_OpenMessageAtObject.
Also, functions without a comment: ObjectEffect_ReservedNoOp941DC.