.\" Generated by the Allegro makedoc utility .TH object_message 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME object_message \- Sends a message to an object and returns the answer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int object_message(DIALOG *dialog, int msg, int c); .SH DESCRIPTION Sends a message to an object and returns the answer it has generated. Remember that the first parameter is the dialog object (not a whole array) that you wish to send the message to. For example, to make the second object in a dialog draw itself, you might write: .nf object_message(&dialog[1], MSG_DRAW, 0); .fi The function will take care of scaring and unscaring the mouse if the message is MSG_DRAW. .SH SEE ALSO .BR dialog_message (3alleg4), .BR scare_mouse (3alleg4), .BR scare_mouse_area (3alleg4), .BR unscare_mouse (3alleg4), .BR excustom (3alleg4), .BR exrgbhsv (3alleg4)