1object_message(3) Allegro manual object_message(3)
2
3
4
6 object_message - Sends a message to an object and returns the answer.
7 Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int object_message(DIALOG *dialog, int msg, int c);
14
16 Sends a message to an object and returns the answer it has generated.
17 Remember that the first parameter is the dialog object (not a whole
18 array) that you wish to send the message to. For example, to make the
19 second object in a dialog draw itself, you might write:
20
21 object_message(&dialog[1], MSG_DRAW, 0);
22
23 The function will take care of scaring and unscaring the mouse if the
24 message is MSG_DRAW.
25
26
28 dialog_message(3), scare_mouse(3), scare_mouse_area(3),
29 unscare_mouse(3), excustom(3), exrgbhsv(3)
30
31
32
33Allegro version 4.2.3 object_message(3)