spry.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. // spry.h
  19. //
  20. ////////////////////////////////////////////////////////////////////////////////
  21. #ifndef SPRY_H
  22. #define SPRY_H
  23. #include "System.h"
  24. #ifdef PATHS_IN_INCLUDES
  25. #include "ORANGE/CDT/flist.h"
  26. #include "ORANGE/GameLib/SPRITE.H"
  27. #else
  28. #include "flist.h"
  29. #include "sprite.h"
  30. #endif
  31. class RSpry
  32. {
  33. //---------------------------------------------------------------------------
  34. // Types, enums, etc.
  35. //---------------------------------------------------------------------------
  36. // This is accessed externally in hood.cpp. --ryan.
  37. //private:
  38. public:
  39. // Typedef for list of RSprite's
  40. typedef RFList<RSprite*> ListOfSprites;
  41. // Miscellaneous enums
  42. enum
  43. {
  44. FileID = 0x59525053,
  45. FileVersion = 1
  46. };
  47. //---------------------------------------------------------------------------
  48. // Member variables
  49. //---------------------------------------------------------------------------
  50. public:
  51. ListOfSprites m_listSprites;
  52. //---------------------------------------------------------------------------
  53. // Member functions
  54. //---------------------------------------------------------------------------
  55. public:
  56. // Default (and only) constructor
  57. RSpry();
  58. // Destructor
  59. ~RSpry();
  60. // Clear
  61. short Clear(void);
  62. // Load from specified file
  63. short Load(
  64. char* pszFile);
  65. // Load from already-open file
  66. short Load(
  67. RFile* pFile);
  68. // Save to specified file
  69. short Save(
  70. char* pszFile);
  71. // Save to already-open file
  72. short Save(
  73. RFile* pFile);
  74. // Convert to specified RImage type
  75. short Convert(
  76. RImage::Type type);
  77. };
  78. #endif //SPRY_H
  79. ////////////////////////////////////////////////////////////////////////////////
  80. // EOF
  81. ////////////////////////////////////////////////////////////////////////////////