WOLGameOptions.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * FILE
  21. * $Archive: /Commando/Code/WWOnline/WOLGameOptions.h $
  22. *
  23. * DESCRIPTION
  24. *
  25. * PROGRAMMER
  26. * $Author: Denzil_l $
  27. *
  28. * VERSION INFO
  29. * $Revision: 4 $
  30. * $Modtime: 10/04/01 10:28p $
  31. *
  32. ******************************************************************************/
  33. #ifndef __WOLGAMEOPTIONS_H__
  34. #define __WOLGAMEOPTIONS_H__
  35. #include "RefPtr.h"
  36. #include <WWLib\WWString.h>
  37. namespace WOL
  38. {
  39. #include "wolapi.h"
  40. }
  41. #ifdef _MSC_VER
  42. #pragma warning (push,3)
  43. #endif
  44. #include <vector>
  45. #ifdef _MSC_VER
  46. #pragma warning (pop)
  47. #endif
  48. namespace WWOnline {
  49. class GameOptionsMessage
  50. {
  51. public:
  52. GameOptionsMessage(const WOL::User* user, const WOL::Channel* channel, const char* options, bool isPrivate);
  53. virtual ~GameOptionsMessage();
  54. inline const char* GetSendersName(void) const
  55. {return (const char*)mUser.name;}
  56. inline const WOL::User& GetWOLUser(void) const
  57. {return mUser;}
  58. inline const WOL::Channel& GetWOLChannel(void) const
  59. {return mChannel;}
  60. inline const StringClass& GetOptions(void) const
  61. {return mOptions;}
  62. inline bool IsPrivate(void) const
  63. {return mIsPrivate;}
  64. protected:
  65. WOL::User mUser;
  66. WOL::Channel mChannel;
  67. StringClass mOptions;
  68. bool mIsPrivate;
  69. private:
  70. GameOptionsMessage(const GameOptionsMessage&);
  71. const GameOptionsMessage& operator=(const GameOptionsMessage&);
  72. };
  73. }
  74. #endif // __WOLGAMEOPTIONS_H__