MPLoadMap.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #ifndef MPLOADMAP_H
  2. #define MPLOADMAP_H
  3. /*************************************************************************************************\
  4. MPLoadMap.h : Interface for the MPLoadMap component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. //*************************************************************************************************
  10. #ifndef LOGISTICSDIALOG_H
  11. #include "LogisticsDialog.h"
  12. #endif
  13. #include "aSystem.h"
  14. #include "aListBox.h"
  15. #include "AttributeMeter.h"
  16. #include "SimpleCamera.h"
  17. #ifndef AANIM_H
  18. #include "aAnim.h"
  19. #endif
  20. class aButton;
  21. class MPLoadMap : public LogisticsDialog
  22. {
  23. public:
  24. MPLoadMap();
  25. virtual ~MPLoadMap();
  26. void init(FitIniFile* file);
  27. bool isDone();
  28. virtual void begin();
  29. virtual void end();
  30. virtual void render( int xOffset, int yOffset );
  31. virtual void render();
  32. virtual void update();
  33. virtual int handleMessage( unsigned long, unsigned long );
  34. void beginSingleMission();
  35. const char* getMapFileName(){ return selMapName; }
  36. static void getMapNameFromFile( const char* pFileName, char* pBuffer, long bufferLength );
  37. private:
  38. int indexOfButtonWithID(int id);
  39. void seedDialog( bool bSeedSingle );
  40. void seedFromCampaign();
  41. aListBox mapList;
  42. aLocalizedListItem templateItem;
  43. EString selMapName;
  44. bool bIsSingle;
  45. void updateMapInfo();
  46. void seedFromFile( const char* pFileName );
  47. void addFile( const char* pFileName, bool bSeedSingle );
  48. };
  49. //*************************************************************************************************
  50. #endif // end of file ( MPLoadMap.h )