Comm/MessageConstants.h

00001 /*
00002  *  MessageConstants.h
00003  *  MacTrek
00004  *
00005  *  Created by Aqua on 26/04/2006.
00006  *  Copyright 2006 Luky Soft. All rights reserved.
00007  *
00008  */
00009 
00010 
00011 #define VALID             0x01 
00012 #define GOD                       0x10 
00013 #define MOO                       0x12 
00014 
00015 // order flags by importance (0x100 - 0x400) 
00016 // restructuring of message flags to squeeze them all #defineo 1 #define - jmn 
00017 // hopefully quasi-back-compatible:
00018 // MVALID, MINDIV, MTEAM, MALL, MGOD use up 5 bits. this leaves us 3 bits.
00019 // since the server only checks for those flags when deciding message
00020 // related things and since each of the above cases only has 1 flag on at
00021 // a time we can overlap the meanings of the flags 
00022 
00023 #define INDIV             0x02 
00024 // these go with MINDIV flag 
00025 #define DBG                       0x20 
00026 #define CONFIG            0x40 
00027 #define DIST              0x60 
00028 #define MACRO             0x80 
00029 #define TEAM              0x04 
00030 // these go with MTEAM flag
00031 #define TAKE              0x20 
00032 #define DEST              0x40 
00033 #define BOMB              0x60 
00034 
00035 #define ALL                       0x08 
00036 // these go with MALL flag
00037 #define CONQ              0x20 
00038 #define KILL              0x80 
00039 #define DISTR             0xC0 
00040 #define PHASER            0x100 

Generated on Sat Aug 26 21:14:09 2006 for MacTrek by  doxygen 1.4.7