Crossfire Client, Trunk
Public Attributes | List of all members
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:
Collaboration graph

Public Attributes

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 148 of file info.c.

Member Data Documentation

◆ age

int info_buffer_t::age

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

Definition at line 149 of file info.c.

Referenced by info_buffer_init(), info_buffer_tick(), 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 153 of file info.c.

Referenced by info_buffer_flush(), info_buffer_init(), info_buffer_tick(), and message_callback().

◆ message

char info_buffer_t::message[MESSAGE_BUFFER_SIZE]

Message data: Message text.

Definition at line 167 of file info.c.

Referenced by info_buffer_init().

◆ orig_color

int info_buffer_t::orig_color

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

Definition at line 158 of file info.c.

Referenced by info_buffer_init(), and message_callback().

◆ subtype

int info_buffer_t::subtype

Message data: Sub-class of the buffered message.

Definition at line 164 of file info.c.

Referenced by info_buffer_init(), and message_callback().

◆ type

int info_buffer_t::type

Message data: Classification of the buffered message.

Definition at line 161 of file info.c.

Referenced by info_buffer_init(), and message_callback().


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