object_message(3alleg4)

object_message3alleg4

Sends a message to an object and returns the answer. allegro game programming library.

Usage

#include <allegro.h>

int object_message(DIALOG *dialog, int msg, int c);

Overview

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:

   object_message(&dialog[1], MSG_DRAW, 0);

The function will take care of scaring and unscaring the mouse if the message is MSG_DRAW.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.