UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_messages.h File Reference
#include "../../DateTime.h"
Include dependency graph for cp_messages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uiMessageListNodeMessage_t

Macros

#define MAX_MESSAGE_TEXT   256
#define TIMESTAMP_TEXT   24

Enumerations

enum  messageType_t {
  MSG_DEBUG , MSG_INFO , MSG_STANDARD , MSG_RESEARCH_PROPOSAL ,
  MSG_RESEARCH_HALTED , MSG_RESEARCH_FINISHED , MSG_CONSTRUCTION , MSG_UFOSPOTTED ,
  MSG_UFOLOST , MSG_TERRORSITE , MSG_BASEATTACK , MSG_TRANSFERFINISHED ,
  MSG_PROMOTION , MSG_PRODUCTION , MSG_NEWS , MSG_DEATH ,
  MSG_CRASHSITE , MSG_EVENT , MSG_MAX
}

Functions

uiMessageListNodeMessage_tMS_AddNewMessage (const char *title, const char *text, messageType_t type=MSG_STANDARD, struct technology_s *pedia=nullptr, bool popup=false, bool playSound=true)
void MS_MessageInit (void)

Variables

char cp_messageBuffer [MAX_MESSAGE_TEXT]

Macro Definition Documentation

◆ MAX_MESSAGE_TEXT

#define MAX_MESSAGE_TEXT   256

Definition at line 29 of file cp_messages.h.

Referenced by MS_AddNewMessage(), and MS_LoadXML().

◆ TIMESTAMP_TEXT

#define TIMESTAMP_TEXT   24

Definition at line 57 of file cp_messages.h.

Enumeration Type Documentation

◆ messageType_t

Enumerator
MSG_DEBUG 

only save them in debug mode

MSG_INFO 

don't save these messages

MSG_STANDARD 
MSG_RESEARCH_PROPOSAL 
MSG_RESEARCH_HALTED 
MSG_RESEARCH_FINISHED 
MSG_CONSTRUCTION 
MSG_UFOSPOTTED 
MSG_UFOLOST 
MSG_TERRORSITE 
MSG_BASEATTACK 
MSG_TRANSFERFINISHED 
MSG_PROMOTION 
MSG_PRODUCTION 
MSG_NEWS 
MSG_DEATH 
MSG_CRASHSITE 
MSG_EVENT 

Eventmail only! used by CL_EventAddMail

MSG_MAX 

Definition at line 32 of file cp_messages.h.

Function Documentation

◆ MS_AddNewMessage()

uiMessageListNodeMessage_t * MS_AddNewMessage ( const char * title,
const char * text,
messageType_t type = MSG_STANDARD,
struct technology_s * pedia = nullptr,
bool popup = false,
bool playSound = true )

◆ MS_MessageInit()

void MS_MessageInit ( void )

Definition at line 334 of file cp_messages.cpp.

References MSO_Init().

Referenced by CP_InitStartup().

Variable Documentation

◆ cp_messageBuffer