core/CellRecipientFilter.h
changeset 593 507e74843261
parent 552 e58968c96860
child 653 ef60870067ff
     1.1 --- a/core/CellRecipientFilter.h	Sat Mar 10 21:26:04 2007 +0000
     1.2 +++ b/core/CellRecipientFilter.h	Sun Mar 11 03:04:39 2007 +0000
     1.3 @@ -21,7 +21,7 @@
     1.4  class CellRecipientFilter : public IRecipientFilter
     1.5  {
     1.6  public:
     1.7 -	CellRecipientFilter() : m_Reliable(false), m_InitMessage(false), m_Size(0) {}
     1.8 +	CellRecipientFilter() : m_IsReliable(false), m_IsInitMessage(false), m_Size(0) {}
     1.9  	~CellRecipientFilter() {}
    1.10  public: //IRecipientFilter
    1.11  	bool IsReliable() const;
    1.12 @@ -29,32 +29,32 @@
    1.13  	int GetRecipientCount() const;
    1.14  	int GetRecipientIndex(int slot) const;
    1.15  public:
    1.16 -	void SetRecipientPtr(cell_t *ptr, size_t count);
    1.17 -	void SetReliable(bool isreliable);
    1.18 -	void SetInitMessage(bool isinitmsg);
    1.19 -	void ResetFilter();
    1.20 +	void Initialize(cell_t *ptr, size_t count);
    1.21 +	void SetToReliable(bool isreliable);
    1.22 +	void SetToInit(bool isinitmsg);
    1.23 +	void Reset();
    1.24  private:
    1.25 -	cell_t m_CellRecipients[255];
    1.26 -	bool m_Reliable;
    1.27 -	bool m_InitMessage;
    1.28 +	cell_t m_Players[255];
    1.29 +	bool m_IsReliable;
    1.30 +	bool m_IsInitMessage;
    1.31  	size_t m_Size;
    1.32  };
    1.33  
    1.34 -inline void CellRecipientFilter::ResetFilter()
    1.35 +inline void CellRecipientFilter::Reset()
    1.36  {
    1.37 -	m_Reliable = false;
    1.38 -	m_InitMessage = false;
    1.39 +	m_IsReliable = false;
    1.40 +	m_IsInitMessage = false;
    1.41  	m_Size = 0;
    1.42  }
    1.43  
    1.44  inline bool CellRecipientFilter::IsReliable() const
    1.45  {
    1.46 -	return m_Reliable;
    1.47 +	return m_IsReliable;
    1.48  }
    1.49  
    1.50  inline bool CellRecipientFilter::IsInitMessage() const
    1.51  {
    1.52 -	return m_InitMessage;
    1.53 +	return m_IsInitMessage;
    1.54  }
    1.55  
    1.56  inline int CellRecipientFilter::GetRecipientCount() const
    1.57 @@ -68,22 +68,22 @@
    1.58  	{
    1.59  		return -1;
    1.60  	}
    1.61 -	return static_cast<int>(m_CellRecipients[slot]);
    1.62 +	return static_cast<int>(m_Players[slot]);
    1.63  }
    1.64  
    1.65 -inline void CellRecipientFilter::SetInitMessage(bool isinitmsg)
    1.66 +inline void CellRecipientFilter::SetToInit(bool isinitmsg)
    1.67  {
    1.68 -	m_InitMessage = isinitmsg;
    1.69 +	m_IsInitMessage = isinitmsg;
    1.70  }
    1.71  
    1.72 -inline void CellRecipientFilter::SetReliable(bool isreliable)
    1.73 +inline void CellRecipientFilter::SetToReliable(bool isreliable)
    1.74  {
    1.75 -	m_Reliable = isreliable;
    1.76 +	m_IsReliable = isreliable;
    1.77  }
    1.78  
    1.79 -inline void CellRecipientFilter::SetRecipientPtr(cell_t *ptr, size_t count)
    1.80 +inline void CellRecipientFilter::Initialize(cell_t *ptr, size_t count)
    1.81  {
    1.82 -	memcpy(m_CellRecipients, ptr, count * sizeof(cell_t));
    1.83 +	memcpy(m_Players, ptr, count * sizeof(cell_t));
    1.84  	m_Size = count;
    1.85  }
    1.86