1 // message.hxx -- Multiplayer Client/Server message base class
\r
3 // Written by John Barrett, started November 2003.
\r
5 // Copyright (C) 2003 John R. Barrett - jbarrett@accesshosting.com
\r
7 // This program is free software; you can redistribute it and/or
\r
8 // modify it under the terms of the GNU General Public License as
\r
9 // published by the Free Software Foundation; either version 2 of the
\r
10 // License, or (at your option) any later version.
\r
12 // This program is distributed in the hope that it will be useful, but
\r
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
15 // General Public License for more details.
\r
17 // You should have received a copy of the GNU General Public License
\r
18 // along with this program; if not, write to the Free Software
\r
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
\r
23 #ifndef _FG_MPS_MSG0001_HXX
\r
24 #define _FG_MPS_MSG0001_HXX
\r
26 #include "message.hxx"
\r
28 #define FGMPSMsg0001HelloID 0x0001
\r
30 class FGMPSMsg0001Hello: public FGMPSMessage
\r
33 FGMPSMsgElementEntry elements[5];
\r
36 static void registerme()
\r
38 FGMPSMessage::registermsg(FGMPSMsg0001HelloID, &FGMPSMsg0001Hello::instance);
\r
41 static FGMPSMessage* instance() { return (FGMPSMessage*) new FGMPSMsg0001Hello; }
\r
43 virtual FGMPSMsgElementEntry* getelements() { return elements; }
\r
45 FGMPSMsg0001Hello();
\r
46 ~FGMPSMsg0001Hello() {}
\r
48 unsigned int vermajor;
\r
49 unsigned int verminor;
\r
50 unsigned int verpatch;
\r