ImageDirectory.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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. // FILE: ImageDirectory.h /////////////////////////////////////////////////////
  19. //-----------------------------------------------------------------------------
  20. //
  21. // Westwood Studios Pacific.
  22. //
  23. // Confidential Information
  24. // Copyright (C) 2001 - All Rights Reserved
  25. //
  26. //-----------------------------------------------------------------------------
  27. //
  28. // Project: ImagePacker
  29. //
  30. // File name: ImageDirectory.h
  31. //
  32. // Created: Colin Day, August 2001
  33. //
  34. // Desc: Image directory description for directories containing
  35. // image files to pack
  36. //
  37. //-----------------------------------------------------------------------------
  38. ///////////////////////////////////////////////////////////////////////////////
  39. #pragma once
  40. #ifndef __IMAGEDIRECTORY_H_
  41. #define __IMAGEDIRECTORY_H_
  42. // SYSTEM INCLUDES ////////////////////////////////////////////////////////////
  43. // USER INCLUDES //////////////////////////////////////////////////////////////
  44. // FORWARD REFERENCES /////////////////////////////////////////////////////////
  45. // TYPE DEFINES ///////////////////////////////////////////////////////////////
  46. // ImageDirectory -------------------------------------------------------------
  47. /** Directory to contain art files */
  48. //-----------------------------------------------------------------------------
  49. class ImageDirectory
  50. {
  51. public:
  52. ImageDirectory();
  53. ~ImageDirectory();
  54. char *m_path; ///< path for directory
  55. UnsignedInt m_imageCount; ///< images to consider in this directory
  56. ImageDirectory *m_next;
  57. ImageDirectory *m_prev;
  58. };
  59. ///////////////////////////////////////////////////////////////////////////////
  60. // INLINING ///////////////////////////////////////////////////////////////////
  61. ///////////////////////////////////////////////////////////////////////////////
  62. inline ImageDirectory::~ImageDirectory( void ) { delete m_path; }
  63. inline ImageDirectory::ImageDirectory( void )
  64. {
  65. m_path = NULL;
  66. m_next = NULL;
  67. m_prev = NULL;
  68. m_imageCount = 0;
  69. }
  70. // EXTERNALS //////////////////////////////////////////////////////////////////
  71. #endif // __IMAGEDIRECTORY_H_