AW_EVENT_CHAT

DESCRIPTION

Event called when an avatar says something.

NOTES

In order to receive this event, you must first announce your position by calling aw_state_change at least once.

The following attributes are defined during this event:

AW_AVATAR_NAME
AW_CHAT_MESSAGE
AW_CHAT_TYPE
AW_CHAT_SESSION

EXAMPLE

static char* chat_type[] = {"said", "broadcasted", "whispered"};

void chat (void)
{

  printf ("%s %s %s\n", aw_string (AW_AVATAR_NAME),
    chat_type[aw_int (AW_CHAT_TYPE)], aw_string (AW_CHAT_MESSAGE));

}

aw_event_set (AW_EVENT_CHAT, chat);

SEE ALSO

aw_say
AW_EVENT_AVATAR_ADD
AW_EVENT_AVATAR_DELETE