dxx-rebirth/common/main/hudmsg.h

41 lines
1.3 KiB
C
Raw Normal View History

2014-06-01 17:55:23 +00:00
/*
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
2014-06-01 17:55:23 +00:00
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
2006-03-20 16:43:15 +00:00
#ifndef _HUD_MSG_H
#define _HUD_MSG_H
#include <stdarg.h>
#include "dxxsconf.h"
#include "dsx-ns.h"
#include "fmtcheck.h"
#include "fwd-gr.h"
#ifdef __cplusplus
#define HUD_MAX_NUM_DISP 4
#define HUD_MAX_NUM_STOR 20
2006-03-20 16:43:15 +00:00
// classes - expanded whenever needed
#define HM_DEFAULT 1 // just some normal message
#define HM_MULTI 2 // a message related to multiplayer (game and player messages)
#define HM_REDUNDANT 4 // "you already have..."-type messages. stuff a player is able to supress
#define HM_MAYDUPL 8 // messages that might appear once per frame. for these we want to check all messages we have in queue and supress it if so
2006-03-20 16:43:15 +00:00
extern int HUD_toolong;
extern void HUD_clear_messages();
#ifdef dsx
namespace dsx {
void HUD_render_message_frame(grs_canvas &);
}
#endif
int HUD_init_message(int class_flag, const char * format, ... ) __attribute_format_printf(2, 3);
int HUD_init_message_va(int class_flag, const char * format, va_list args) __attribute_format_printf(2, 0);
int HUD_init_message_literal(int class_flag, const char *str);
2006-03-20 16:43:15 +00:00
#endif
2006-03-20 16:43:15 +00:00
#endif