UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_messages.h
Go to the documentation of this file.
1
4
5/*
6Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17See the GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23*/
24
25#pragma once
26
27#include "../../DateTime.h"
28
29#define MAX_MESSAGE_TEXT 256
30
31/* message systems */
55
56/* Russian timestamp (with UTF-8) is 23 bytes long */
57#define TIMESTAMP_TEXT 24
61 char* text;
63 const char* iconName;
66
69 struct technology_s* pedia;
70 struct eventMail_s* eventMail;
71};
72
74
75uiMessageListNodeMessage_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);
76void MS_MessageInit(void);
77
DateTime class definition.
Class describing a point of time.
Definition DateTime.h:31
char cp_messageBuffer[MAX_MESSAGE_TEXT]
messageType_t
Definition cp_messages.h:32
@ MSG_CRASHSITE
Definition cp_messages.h:49
@ MSG_PRODUCTION
Definition cp_messages.h:46
@ MSG_PROMOTION
Definition cp_messages.h:45
@ MSG_CONSTRUCTION
Definition cp_messages.h:39
@ MSG_DEBUG
Definition cp_messages.h:33
@ MSG_TERRORSITE
Definition cp_messages.h:42
@ MSG_RESEARCH_FINISHED
Definition cp_messages.h:38
@ MSG_TRANSFERFINISHED
Definition cp_messages.h:44
@ MSG_DEATH
Definition cp_messages.h:48
@ MSG_UFOSPOTTED
Definition cp_messages.h:40
@ MSG_INFO
Definition cp_messages.h:34
@ MSG_RESEARCH_PROPOSAL
Definition cp_messages.h:36
@ MSG_EVENT
Definition cp_messages.h:51
@ MSG_UFOLOST
Definition cp_messages.h:41
@ MSG_STANDARD
Definition cp_messages.h:35
@ MSG_RESEARCH_HALTED
Definition cp_messages.h:37
@ MSG_BASEATTACK
Definition cp_messages.h:43
@ MSG_MAX
Definition cp_messages.h:53
@ MSG_NEWS
Definition cp_messages.h:47
#define MAX_MESSAGE_TEXT
Definition cp_messages.h:29
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)
#define TIMESTAMP_TEXT
Definition cp_messages.h:57
void MS_MessageInit(void)
QGL_EXTERN GLint GLenum type
Definition r_gl.h:94
#define MAX_VAR
Definition shared.h:36
char timestamp[TIMESTAMP_TEXT]
Definition cp_messages.h:60
struct uiMessageListNodeMessage_s * next
Definition cp_messages.h:65
struct eventMail_s * eventMail
Definition cp_messages.h:70
struct technology_s * pedia
Definition cp_messages.h:69