update_dialog(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸŽ€ update_dialog(3) πŸŽ€

okay bestie, so this is update_dialog, a low-level function that updates a dialog player, and it lives in the Allegro game programming library. it's giving very much "behind the scenes" energy, iykyk πŸ’…


✨ SYNOPSIS ✨

#include <allegro.h>

int update_dialog(DIALOG_PLAYER *player);

🌸 DESCRIPTION 🌸

so what this does is it updates the status of a dialog object β€” the kind you got back from init_dialog(). that's the whole job. she's a low-level girlie and she's fine with that 🫢

it returns TRUE if the dialog is still active, or FALSE if it has terminated. no cap.

πŸ’€ heads up: when it hands you back FALSE, that's when you have to decide what happens next β€” it is literally up to you whether to call shutdown_dialog() or to just keep going with execution. the function is not gonna hold your hand on that one, bestie.

and if you're sitting there like "wait, who ended this?? 😭" β€” the object that requested the exit can be determined from the player->obj field. iconic. she told you exactly where to look. periodt.


πŸ¦‹ SEE ALSO πŸ¦‹


that's the whole vibe ✨ this page was brought to you by Allegro, version 4.4.3 β€” and yeah, the manual page itself is literally named update_dialog(3), we love a self-titled moment πŸ‘‘πŸ’–

πŸ“¦ where this page comes from