Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=====================================================================================//
  6. #ifndef C_MOVIE_DISPLAY_H
  7. #define C_MOVIE_DISPLAY_H
  8. #include "cbase.h"
  9. class C_MovieDisplay : public C_BaseEntity
  10. {
  11. public:
  12. DECLARE_CLASS( C_MovieDisplay, C_BaseEntity );
  13. DECLARE_CLIENTCLASS();
  14. C_MovieDisplay();
  15. ~C_MovieDisplay();
  16. bool IsEnabled( void ) const { return m_bEnabled; }
  17. bool IsLooping( void ) const { return m_bLooping; }
  18. bool IsStretchingToFill( void ) const { return m_bStretchToFill; }
  19. bool IsForcedSlave( void ) const { return m_bForcedSlave; }
  20. bool IsUsingCustomUVs( void ) const { return m_bUseCustomUVs; }
  21. bool GetWantsToBeMaster( void ) const { return m_bWantsToBeMaster; }
  22. void SetMasterAttempted( void ) { m_bWantsToBeMaster = false; m_bForcedSlave = false; }
  23. float GetUMin( void ) const { return m_flUMin; }
  24. float GetUMax( void ) const { return m_flUMax; }
  25. float GetVMin( void ) const { return m_flVMin; }
  26. float GetVMax( void ) const { return m_flVMax; }
  27. virtual void ReceiveMessage( int classID, bf_read &msg );
  28. const char *GetMovieFilename( void ) const { return m_szMovieFilename; }
  29. const char *GetGroupName( void ) const { return m_szGroupName; }
  30. private:
  31. bool m_bEnabled;
  32. bool m_bLooping;
  33. char m_szMovieFilename[128];
  34. char m_szGroupName[128];
  35. bool m_bStretchToFill;
  36. bool m_bForcedSlave;
  37. bool m_bUseCustomUVs;
  38. bool m_bWantsToBeMaster;
  39. float m_flUMin;
  40. float m_flUMax;
  41. float m_flVMin;
  42. float m_flVMax;
  43. };
  44. #endif //C_MOVIE_DISPLAY_H