civilizationigc.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. ** Copyright (C) 1996, 1997 Microsoft Corporation. All Rights Reserved.
  3. **
  4. ** File: civilizationIGC.h
  5. **
  6. ** Author:
  7. **
  8. ** Description:
  9. ** Header for the CcivilizationIGC class. This file was initially created by
  10. ** the ATL wizard.
  11. **
  12. ** History:
  13. */
  14. // civilizationIGC.h : Declaration of the CcivilizationIGC
  15. #ifndef __CIVILIZATIONIGC_H_
  16. #define __CIVILIZATIONIGC_H_
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CcivilizationIGC
  19. class CcivilizationIGC : public IcivilizationIGC
  20. {
  21. public:
  22. CcivilizationIGC(void)
  23. {
  24. }
  25. public:
  26. // IbaseIGC
  27. virtual HRESULT Initialize(ImissionIGC* pMission, Time now, const void* data, int dataSize);
  28. virtual void Terminate(void);
  29. virtual int Export(void* data) const;
  30. virtual ObjectType GetObjectType(void) const
  31. {
  32. return OT_civilization;
  33. }
  34. virtual ObjectID GetObjectID(void) const
  35. {
  36. return m_data.civilizationID;
  37. }
  38. // IcivilizationIGC
  39. virtual const char* GetName(void) const
  40. {
  41. return m_data.name;
  42. }
  43. virtual const char* GetIconName(void) const
  44. {
  45. return m_data.iconName;
  46. }
  47. virtual IhullTypeIGC* GetLifepod(void) const
  48. {
  49. return m_phtLifepod;
  50. }
  51. virtual const TechTreeBitMask& GetBaseTechs(void) const
  52. {
  53. return m_data.ttbmBaseTechs;
  54. }
  55. virtual const TechTreeBitMask& GetNoDevTechs(void) const
  56. {
  57. return m_data.ttbmNoDevTechs;
  58. }
  59. virtual const GlobalAttributeSet& GetBaseAttributes(void) const
  60. {
  61. return m_data.gasBaseAttributes;
  62. }
  63. virtual IstationTypeIGC* GetInitialStationType(void) const
  64. {
  65. return m_pstInitial;
  66. }
  67. virtual const char* GetHUDName(void) const
  68. {
  69. return m_data.hudName;
  70. }
  71. virtual float GetBonusMoney(void) const
  72. {
  73. return m_data.bonusMoney;
  74. }
  75. virtual float GetIncomeMoney(void) const
  76. {
  77. return m_data.incomeMoney;
  78. }
  79. private:
  80. ImissionIGC* m_pMission;
  81. DataCivilizationIGC m_data;
  82. IhullTypeIGC* m_phtLifepod;
  83. IstationTypeIGC* m_pstInitial;
  84. };
  85. #endif //__CIVILIZATIONIGC_H_