Crossfire Client, Trunk  R20789
info_buffer_t Struct Reference

A buffer record that supports suppression of duplicate messages. This buffer holds data for messages that are monitored for suppression of duplicates. The buffer holds all data passed to message_callback(), including type, subtype, suggested color, and the text. Age and count fields are provided to track the time a message is in the buffer, and how many times it occured during the time it is buffered. More...

+ Collaboration diagram for info_buffer_t:

Data Fields

int age
 
int count
 
char message [MESSAGE_BUFFER_SIZE]
 
int orig_color
 
int subtype
 
int type
 

Detailed Description

A buffer record that supports suppression of duplicate messages. This buffer holds data for messages that are monitored for suppression of duplicates. The buffer holds all data passed to message_callback(), including type, subtype, suggested color, and the text. Age and count fields are provided to track the time a message is in the buffer, and how many times it occured during the time it is buffered.

Definition at line 167 of file info.c.

Field Documentation

◆ age

int info_buffer_t::age

The length of time a message spends in the buffer, measured in client ticks.

Definition at line 168 of file info.c.

Referenced by draw_ext_info(), and message_callback().

◆ count

int info_buffer_t::count

The number of times a buffered message is detected while it is buffered. A count of -1 indicates the buffer is empty.

Definition at line 172 of file info.c.

Referenced by draw_ext_info(), and message_callback().

◆ message

char info_buffer_t::message[MESSAGE_BUFFER_SIZE]

Message data: Message text.

Definition at line 186 of file info.c.

Referenced by draw_ext_info().

◆ orig_color

int info_buffer_t::orig_color

Message data: The suggested color to display the text in.

Definition at line 177 of file info.c.

Referenced by draw_ext_info(), and message_callback().

◆ subtype

int info_buffer_t::subtype

Message data: Sub-class of the buffered message.

Definition at line 183 of file info.c.

Referenced by draw_ext_info(), and message_callback().

◆ type

int info_buffer_t::type

Message data: Classification of the buffered message.

Definition at line 180 of file info.c.

Referenced by draw_ext_info(), and message_callback().


The documentation for this struct was generated from the following file: