object_message(3alleg4)
π NAME π
object_message β sends a message to an object and returns the answer. It's part of the Allegro game programming library, bestie. π
β¨ SYNOPSIS β¨
#include <allegro.h>
int object_message(DIALOG *dialog, int msg, int c);
π¦ DESCRIPTION π¦
Okay so picture this: you've got an object, and you wanna slide into its DMs. That's literally what this does β it sends a message to an object and hands you back the answer that object generated. No cap. π
Big important reminder though: the first parameter is the dialog object itself, not a whole array of them. Just the one. The singular. The main character. π
So like, say you want the second object in a dialog to draw itself β you'd write this:
object_message(&dialog[1], MSG_DRAW, 0);
And here's the cute lil bonus feature: if the message you're sending is MSG_DRAW, the function will take care of scaring and unscaring the mouse for you. It handles the whole mouse-vanishing act so you don't have to. Iconic behaviour, honestly. πβ¨
π SEE ALSO π
dialog_message(3alleg4)scare_mouse(3alleg4)scare_mouse_area(3alleg4)unscare_mouse(3alleg4)excustom(3alleg4)exrgbhsv(3alleg4)
k bye bestie, go send some messages π this was Allegro version 4.4.3, and yeah the page is dated like that β it's the object_message(3alleg4) era, we stan a legacy queen π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms