Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
msgcenter.h
Go to the documentation of this file.
1 /*
2  * Vega Strike
3  * Copyright (C) 2001-2002 Daniel Horn
4  *
5  * http://vegastrike.sourceforge.net/
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  */
21 
22 /*
23  * MessageCenter written by Alexander Rawass <alexannika@users.sourceforge.net>
24  */
25 
26 #ifndef _MSGCENTER_H_
27 
28 #define _MSGCENTER_H_
29 
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <errno.h>
33 #include <time.h>
34 #include <ctype.h>
35 #include <assert.h>
36 #ifndef WIN32
37 //this file isn't available on my system (all win32 machines?) i dun even know what it has or if we need it as I can compile without it
38 #include <unistd.h>
39 #endif
40 
41 #include <expat.h>
42 #include "xml_support.h"
43 
44 #include "vegastrike.h"
45 
46 #include "mission.h"
47 //#include "easydom.h"
48 
49 //#include "vs_globals.h"
50 //#include "vegastrike.h"
51 
52 #include "SharedPool.h"
53 
55 {
56 public:
58  double time;
59 };
60 
62 {
63 public:
64  bool last( unsigned int n, gameMessage &m,
65  const std::vector< std::string > &who = std::vector< std::string > (), const std::vector< std::string > &whoNOT =
66  std::vector< std::string > () );
67  void add( string from, string to, string message, double delay = 0.0 );
68  void clear(
69  const std::vector< std::string > &who = std::vector< std::string > (), const std::vector< std::string > &whoNOT =
70  std::vector< std::string > () );
71  vector< gameMessage >messages;
72 };
73 
74 #endif //_MSGCENTER_H_
75