File: message.h

package info (click to toggle)
openssn 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,340 kB
  • sloc: cpp: 10,973; makefile: 80
file content (63 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
                          message.h  -  description
                             -------------------
    begin                : Monday Jan 13 2003
    copyright            : (C) 2003 by Michael Bridak
    email                : michael.bridak@verizon.net
$Id: message.h,v 1.3 2003/04/20 16:44:30 mbridak Exp $
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License.     *
 *    .                                   *
 *                                                                         *
 ***************************************************************************/
 
#ifndef MESSAGE_H
#define MESSAGE_H

#include <string>

/**
  *@author Michael Bridak
  */

class msg {
public:	
	char buffer[20][256];
	
	void InitGraphics();

	/**	Places a one line message into the
		message buffer to be later displayed
		by the display_message() method.*/
	void post_message(char *temp_string);
	
	/**	Displays the tail end of the buffer
		onto the main screen.*/
	void display_message();
	
	/**	Our constructor....*/ 
	msg();
	
	/**	And the probably never to be used destructor..*/
	~msg();
private:
	/**	Our main storage for buffer text.*/

	SDL_Surface *screen;
	SDL_Surface *messagewindow;
	DFont largeFont(const char*, const char *);
	Uint32	textcolor;
	Uint32	black;
	Uint32	white;
	Uint32	red;
	Uint32	green;
	Uint32	yellow;
	
};

#endif