Main Page | Class List | File List | Class Members | File Members

MRecipientFilter.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*- */
00002 /* MRecipientFilter.h
00003  *
00004  * Copyright (C) 2005 Guwashi <guwashi[AT]fooos[DOT]com>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 // This code is based on
00022 // http://www.hl2coding.com/forums/viewtopic.php?t=31
00023 
00024 #ifndef _MRECIPIENTFILTER_H_
00025 #define _MRECIPIENTFILTER_H_
00026 
00027 #include "eiface.h"
00028 #include "dlls/iplayerinfo.h"
00029 #include "irecipientfilter.h"
00030 #include "bitvec.h"
00031 #include "tier1/utlvector.h"
00032 
00033 class MRecipientFilter : public IRecipientFilter
00034 {
00035 public:
00036   MRecipientFilter(void);
00037   ~MRecipientFilter(void);
00038 
00039   virtual bool IsReliable(void) const;
00040   virtual bool IsInitMessage(void) const;
00041 
00042   virtual int GetRecipientCount(void) const;
00043   virtual int GetRecipientIndex(int slot) const;
00044 
00045   bool AddPlayerByIndex(IVEngineServer* engine, IPlayerInfoManager* playerInfoManager, int playerIndex);
00046   bool AddAllPlayers(IVEngineServer* engine, IPlayerInfoManager* playerInfoManager, int maxClients);
00047 
00048 private:
00049   //bool m_bReliable;
00050   //bool m_bInitMessage;
00051   CUtlVector<int> m_Recipients;
00052 };
00053 
00054 #endif // _MRECIPIENTFILTER_H_

Generated on Tue Jun 28 01:09:07 2005 for CountryFilter by  doxygen 1.4.3-20050623