MPAddAIPlayer.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef MPADDAIPLAYER_H
  2. #define MPADDAIPLAYER_H
  3. /*************************************************************************************************\
  4. MPAddAIPlayer.h : Interface for the MPAddAIPlayer component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. //*************************************************************************************************
  10. #ifndef LOGISTICSSCREEN_H
  11. #include "LogisticsScreen.h"
  12. #endif
  13. #include "aSystem.h"
  14. #include "aListBox.h"
  15. #include "AttributeMeter.h"
  16. #include "SimpleCamera.h"
  17. #include "MPParameterScreen.h"/*only for the definition of CFocusManager*/
  18. #ifndef AANIM_H
  19. #include "aAnim.h"
  20. #endif
  21. class aStyle4TextListItem : public aTextListItem
  22. {
  23. public:
  24. aStyle4TextListItem() { hasAnimation = false; normalColor = 0xff808080; }
  25. virtual long init( FitIniFile* file, const char* blockName );
  26. virtual void render();
  27. protected:
  28. bool hasAnimation;
  29. aAnimGroup animGroup;
  30. int normalColor;
  31. };
  32. class MPAddAIPlayer : public LogisticsScreen
  33. {
  34. public:
  35. MPAddAIPlayer();
  36. virtual ~MPAddAIPlayer();
  37. void init(FitIniFile* file);
  38. bool isDone();
  39. virtual void begin();
  40. virtual void end();
  41. virtual void render( int xOffset, int yOffset );
  42. virtual void render();
  43. virtual void update();
  44. virtual int handleMessage( unsigned long, unsigned long );
  45. private:
  46. aEdit nameEntry;
  47. aRect nameEntryOutline;
  48. aDropList experienceDropList;
  49. aDropList factionDropList;
  50. aDropList mechSelectionDropLists[4][3];
  51. int indexOfButtonWithID(int id);
  52. CFocusManager focusManager;
  53. };
  54. //*************************************************************************************************
  55. #endif // end of file ( MPAddAIPlayer.h )