搜索
 找回密码
 加入

重建一些AI缺失的源代码

ctgwglzc 2009-9-22 01:42:14 2571
NpcTableSet.h
  1. #if !defined(AFX_NPCTABLESET_H__0F6AE0D2_2327_44B1_8D11_AEB3D8DE2CB9__INCLUDED_)
  2. #define AFX_NPCTABLESET_H__0F6AE0D2_2327_44B1_8D11_AEB3D8DE2CB9__INCLUDED_

  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // NpcTableSet.h : header file
  7. //

  8. /////////////////////////////////////////////////////////////////////////////
  9. // NpcTableSet recordset

  10. class CNpcTableSet : public CRecordset
  11. {
  12. public:
  13.     CNpcTableSet(CDatabase* pDatabase = NULL);
  14.     DECLARE_DYNAMIC(CNpcTableSet)

  15.     // Field/Param Data
  16.     //{{AFX_FIELD(CNpcTableSet, CRecordset)
  17.     int        m_sSid;
  18.     CString m_strName;
  19.     int        m_sPid;
  20.     int        m_sSize;
  21.     long    m_iWeapon1;
  22.     long    m_iWeapon2;
  23.     BYTE    m_byGroup;
  24.     BYTE    m_byActType;
  25.     BYTE    m_byType;
  26.     BYTE    m_byFamily;
  27.     BYTE    m_byRank;
  28.     BYTE    m_byTitle;
  29.     long    m_iSellingGroup;
  30.     int        m_sLevel;
  31.     long    m_iExp;
  32.     long    m_iLoyalty;
  33.     long    m_iHpPoint;
  34.     int        m_sMpPoint;
  35.     int        m_sAtk;
  36.     int        m_sAc;
  37.     int        m_sHitRate;
  38.     int        m_sEvadeRate;
  39.     int        m_sDamage;
  40.     int        m_sAttackDelay;
  41.     BYTE    m_bySpeed1;
  42.     BYTE    m_bySpeed2;
  43.     int        m_sStandtime;
  44.     long    m_iMagic1;
  45.     long    m_iMagic2;
  46.     long    m_iMagic3;
  47.     int        m_sFireR;
  48.     int        m_sColdR;
  49.     int        m_sLightningR;
  50.     int        m_sMagicR;
  51.     int        m_sDiseaseR;
  52.     int        m_sPoisonR;
  53.     int        m_sLightR;
  54.     int        m_sBulk;
  55.     BYTE    m_byAttackRange;
  56.     BYTE    m_bySearchRange;
  57.     BYTE    m_byTracingRange;
  58.     long    m_iMoney;
  59.     int        m_sItem;
  60.     BYTE    m_byDirectAttack;
  61.     BYTE    m_byMagicAttack;
  62.     BYTE    m_byMoneyType;
  63.     //}}AFX_FIELD


  64.     // Overrides
  65.     // ClassWizard generated virtual function overrides
  66.     //{{AFX_VIRTUAL(CNpcTableSet)
  67. public:
  68.     virtual CString GetDefaultConnect();    // Default connection string
  69.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  70.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  71.     //}}AFX_VIRTUAL

  72.     // Implementation
  73. #ifdef _DEBUG
  74.     virtual void AssertValid() const;
  75.     virtual void Dump(CDumpContext& dc) const;
  76. #endif
  77. };

  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.

  80. #endif // !defined(AFX_NPCTABLESET_H__0F6AE0D2_2327_44B1_8D11_AEB3D8DE2CB9__INCLUDED_)
复制代码

18 回复

ctgwglzc
2009-9-22 01:38:06
楼主
点击查看详情
NpcTableSet.cpp
  1. // NpcTableSet.cpp : implementation file
  2. //

  3. #include "stdafx.h"
  4. #include "NpcTableSet.h"

  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif

  10. /////////////////////////////////////////////////////////////////////////////
  11. // CNpcTableSet

  12. IMPLEMENT_DYNAMIC(CNpcTableSet, CRecordset)

  13. CNpcTableSet::CNpcTableSet(CDatabase* pdb)
  14. : CRecordset(pdb)
  15. {
  16.     //{{AFX_FIELD_INIT(CNpcTableSet)
  17.     m_sSid = 0;
  18.     m_strName = _T("");
  19.     m_sPid = 0;
  20.     m_sSize = 0;
  21.     m_iWeapon1 = 0;
  22.     m_iWeapon2 = 0;
  23.     m_byGroup = 0;
  24.     m_byActType = 0;
  25.     m_byType = 0;
  26.     m_byFamily = 0;
  27.     m_byRank = 0;
  28.     m_byTitle = 0;
  29.     m_iSellingGroup = 0;
  30.     m_sLevel = 0;
  31.     m_iExp = 0;
  32.     m_iLoyalty = 0;
  33.     m_iHpPoint = 0;
  34.     m_sMpPoint = 0;
  35.     m_sAtk = 0;
  36.     m_sAc = 0;
  37.     m_sHitRate = 0;
  38.     m_sEvadeRate = 0;
  39.     m_sDamage = 0;
  40.     m_sAttackDelay = 0;
  41.     m_bySpeed1 = 0;
  42.     m_bySpeed2 = 0;
  43.     m_sStandtime = 0;
  44.     m_iMagic1 = 0;
  45.     m_iMagic2 = 0;
  46.     m_iMagic3 = 0;
  47.     m_sFireR = 0;
  48.     m_sColdR = 0;
  49.     m_sLightningR = 0;
  50.     m_sMagicR = 0;
  51.     m_sDiseaseR = 0;
  52.     m_sPoisonR = 0;
  53.     m_sLightR = 0;
  54.     m_sBulk = 0;
  55.     m_byAttackRange = 0;
  56.     m_bySearchRange = 0;
  57.     m_byTracingRange = 0;
  58.     m_iMoney = 0;
  59.     m_sItem = 0;
  60.     m_byDirectAttack = 0;
  61.     m_byMagicAttack = 0;
  62.     m_byMoneyType = 0;
  63.     m_nFields = 46;
  64.     //}}AFX_FIELD_INIT
  65.     m_nDefaultType = snapshot;
  66. }


  67. CString CNpcTableSet::GetDefaultConnect()
  68. {
  69.     return _T("ODBC;DSN=kn_online;UID=knight;PWD=knight");
  70. }

  71. CString CNpcTableSet::GetDefaultSQL()
  72. {
  73.     return _T("[dbo].[K_NPC]");
  74. }

  75. void CNpcTableSet::DoFieldExchange(CFieldExchange* pFX)
  76. {
  77.     //{{AFX_FIELD_MAP(CNpcTableSet)
  78.     pFX->SetFieldType(CFieldExchange::outputColumn);

  79.     RFX_Int(pFX, _T("[sSid]"), m_sSid);
  80.     RFX_Text(pFX, _T("[strName]"), m_strName);
  81.     RFX_Int(pFX, _T("[sPid]"), m_sPid);
  82.     RFX_Int(pFX, _T("[sSize]"), m_sSize);
  83.     RFX_Long(pFX, _T("[iWeapon1]"), m_iWeapon1);
  84.     RFX_Long(pFX, _T("[iWeapon2]"), m_iWeapon2);
  85.     RFX_Byte(pFX, _T("[byGroup]"), m_byGroup);
  86.     RFX_Byte(pFX, _T("[byActType]"), m_byActType);
  87.     RFX_Byte(pFX, _T("[byType]"), m_byType);
  88.     RFX_Byte(pFX, _T("[byFamily]"), m_byFamily);
  89.     RFX_Byte(pFX, _T("[byRank]"), m_byRank);
  90.     RFX_Byte(pFX, _T("[byTitle]"), m_byTitle);
  91.     RFX_Long(pFX, _T("[iSellingGroup]"), m_iSellingGroup);
  92.     RFX_Int(pFX, _T("[sLevel]"), m_sLevel);
  93.     RFX_Long(pFX, _T("[iExp]"), m_iLoyalty);
  94.     RFX_Long(pFX, _T("[iLoyalty]"), m_iLoyalty);
  95.     RFX_Long(pFX, _T("[iHpPoint]"), m_iHpPoint);
  96.     RFX_Int(pFX, _T("[sMpPoint]"), m_sMpPoint);
  97.     RFX_Int(pFX, _T("[sAtk]"), m_sAtk);
  98.     RFX_Int(pFX, _T("[sAc]"), m_sAc);
  99.     RFX_Int(pFX, _T("[sHitRate]"), m_sHitRate);
  100.     RFX_Int(pFX, _T("[sEvadeRate]"), m_sEvadeRate);
  101.     RFX_Int(pFX, _T("[sAttackDelay]"), m_sAttackDelay);
  102.     RFX_Byte(pFX, _T("[bySpeed1]"), m_bySpeed1);
  103.     RFX_Byte(pFX, _T("[bySpeed2]"), m_bySpeed2);
  104.     RFX_Int(pFX, _T("[sStandtime]"), m_sStandtime);
  105.     RFX_Long(pFX, _T("[iMagic1]"), m_iMagic1);
  106.     RFX_Long(pFX, _T("[iMagic2]"), m_iMagic1);
  107.     RFX_Long(pFX, _T("[iMagic3]"), m_iMagic1);
  108.     RFX_Int(pFX, _T("[sFireR]"), m_sFireR);
  109.     RFX_Int(pFX, _T("[sColdR]"), m_sColdR);
  110.     RFX_Int(pFX, _T("[sDiseaseR]"), m_sDiseaseR);
  111.     RFX_Int(pFX, _T("[sMagicR]"), m_sMagicR);
  112.     RFX_Int(pFX, _T("[sLightningR]"), m_sLightningR);
  113.     RFX_Int(pFX, _T("[sPoisonR]"), m_sPoisonR);
  114.     RFX_Int(pFX, _T("[sLightR]"), m_sLightR);
  115.     RFX_Int(pFX, _T("[sBulk]"), m_sBulk);
  116.     RFX_Byte(pFX, _T("[byAttackRange]"), m_byAttackRange);
  117.     RFX_Byte(pFX, _T("[bySearchRange]"), m_bySearchRange);
  118.     RFX_Byte(pFX, _T("[byTracingRange]"), m_byTracingRange);
  119.     RFX_Long(pFX, _T("[iMoney]"), m_iMoney);
  120.     RFX_Int(pFX, _T("[sItem]"), m_sItem);
  121.     RFX_Byte(pFX, _T("[byDirectAttack]"), m_byDirectAttack);
  122.     RFX_Byte(pFX, _T("[byMagicAttack]"), m_byMagicAttack);

  123.     //}}AFX_FIELD_MAP
  124. }

  125. /////////////////////////////////////////////////////////////////////////////
  126. // CNpcTableSet diagnostics

  127. #ifdef _DEBUG
  128. void CNpcTableSet::AssertValid() const
  129. {
  130.     CRecordset::AssertValid();
  131. }

  132. void CNpcTableSet::Dump(CDumpContext& dc) const
  133. {
  134.     CRecordset::Dump(dc);
  135. }
  136. #endif //_DEBUG
复制代码
ctgwglzc
2009-9-22 01:38:43
楼主
Party.h
  1. // Party.h: interface for the CParty class.
  2. //
  3. //////////////////////////////////////////////////////////////////////

  4. #if !defined(AFX_PARTY_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_)
  5. #define AFX_PARTY_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_

  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000

  9. #include "stdafx.h"

  10. class CParty
  11. {
  12. public:
  13.     CParty();
  14.     virtual ~CParty();

  15.     void Initialize();
  16.     void PartyProcess(char *pBuf);
  17.     void PartyCreate(char *pBuf);
  18.     void PartyInsert(char *pBuf);
  19.     void PartyRemove(char *pBuf);
  20.     void PartyDelete(char *pBuf);

  21. };

  22. #endif // !defined(AFX_PARTY_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_)
复制代码
ctgwglzc
2009-9-22 01:38:57
楼主
Region.h
  1. // Region.h: interface for the CRegion class.
  2. //
  3. //////////////////////////////////////////////////////////////////////

  4. #if !defined(AFX_REGION_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_)
  5. #define AFX_REGION_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_

  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000

  9. #include "stdafx.h"
  10. #include "STLMap.h"

  11. typedef CSTLMap <int>            ZoneUserArray;
  12. typedef CSTLMap <int>            ZoneNpcArray;

  13. class CRegion  
  14. {
  15. public:
  16.     CRegion();
  17.     virtual ~CRegion();

  18.     ZoneUserArray    m_RegionUserArray;
  19.     ZoneNpcArray    m_RegionNpcArray;

  20. };

  21. #endif // !defined(AFX_REGION_H__98237635_8ED6_4B3A_8AB8_933055C4995F__INCLUDED_)
复制代码
ctgwglzc
2009-9-22 01:39:58
楼主
Region.cpp
  1. // Region.cpp: implementation of the CRegion class.
  2. //
  3. //////////////////////////////////////////////////////////////////////

  4. #include "stdafx.h"
  5. #include "Region.h"

  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char THIS_FILE[]=__FILE__;
  9. #define new DEBUG_NEW
  10. #endif

  11. //////////////////////////////////////////////////////////////////////
  12. // Construction/Destruction
  13. //////////////////////////////////////////////////////////////////////

  14. CRegion::CRegion()
  15. {
  16. }

  17. CRegion::~CRegion()
  18. {
  19.     if( !m_RegionUserArray.IsEmpty() )
  20.         m_RegionUserArray.DeleteAllData();

  21.     if( !m_RegionNpcArray.IsEmpty() )
  22.         m_RegionNpcArray.DeleteAllData();
  23. }
复制代码
ctgwglzc
2009-9-22 01:40:27
楼主
PathFind.h
  1. // PathFind.h: interface for the CPathFind class.
  2. //
  3. //////////////////////////////////////////////////////////////////////

  4. #if !defined(AFX_CPATHFIND_H__7C457180_E271_45E6_BEFC_912BCCAB0604__INCLUDED_)
  5. #define AFX_CPATHFIND_H__7C457180_E271_45E6_BEFC_912BCCAB0604__INCLUDED_

  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000

  9. struct _PathNode
  10. {
  11.     _PathNode *Parent;
  12.     _PathNode *Child;
  13.     _PathNode *NextNode;
  14.     int f;
  15.     int g;
  16.     int h;
  17.     int x;
  18.     int y;
  19. };

  20. class CPathFind
  21. {
  22. public:
  23.     CPathFind();
  24.     ~CPathFind();

  25.     void ClearData();
  26.     void SetMap(int x, int y, int *pMap);
  27.     _PathNode *FindPath(int start_x, int start_y, int dest_x, int dest_y);
  28.     _PathNode *ReturnBestNode();
  29.     void FindChildPath(_PathNode *node, int dx, int dy);
  30.     void FindChildPathSub(_PathNode *node, int x, int y, int dx, int dy, int arg);
  31.     _PathNode *CheckOpen(int x, int y);
  32.     _PathNode *CheckClosed(int x, int y);
  33.     void Insert(_PathNode *node);
  34.     void PropagateDown(_PathNode *old);
  35.     void Push(_PathNode *node);
  36.     _PathNode *Pop();
  37.     BOOL IsBlankMap(int x, int y);

  38. };

  39. #endif // !defined(AFX_CPATHFIND_H__7C457180_E271_45E6_BEFC_912BCCAB0604__INCLUDED_)
复制代码
ctgwglzc
2009-9-22 01:41:03
楼主
MagicTableSet.h
  1. #if !defined(AFX_MAGICTABLESET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_)
  2. #define AFX_MAGICTABLESET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_

  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MagicTableSet.h : header file
  7. //

  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMagicTableSet recordset

  10. class CMagicTableSet : public CRecordset
  11. {
  12. public:
  13.     CMagicTableSet(CDatabase* pDatabase = NULL);
  14.     DECLARE_DYNAMIC(CMagicTableSet)

  15.     // Field/Param Data
  16.     //{{AFX_FIELD(CMagicTableSet, CRecordset)
  17.     long    m_MagicNum;
  18.     CString    m_EnName;
  19.     CString    m_KrName;
  20.     CString    m_Description;
  21.     BYTE    m_BeforeAction;
  22.     BYTE    m_TargetAction;
  23.     BYTE    m_SelfEffect;
  24.     BYTE    m_FlyingEffect;
  25.     int        m_TargetEffect;
  26.     BYTE    m_Moral;
  27.     int        m_SkillLevel;
  28.     int        m_Skill;
  29.     int        m_Msp;
  30.     int        m_HP;
  31.     BYTE    m_ItemGroup;
  32.     long    m_UseItem;
  33.     BYTE    m_CastTime;
  34.     BYTE    m_ReCastTime;
  35.     BYTE    m_SuccessRate;
  36.     BYTE    m_Type1;
  37.     BYTE    m_Type2;
  38.     int        m_Range;
  39.     BYTE    m_Etc;
  40.     long    m_Event;
  41.     //}}AFX_FIELD

  42.     // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CMagicTableSet)
  45. public:
  46.     virtual CString GetDefaultConnect();    // Default connection string
  47.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  48.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  49.     //}}AFX_VIRTUAL

  50.     // Implementation
  51. #ifdef _DEBUG
  52.     virtual void AssertValid() const;
  53.     virtual void Dump(CDumpContext& dc) const;
  54. #endif
  55. };

  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.

  58. #endif // !defined(AFX_MAGICTABLESET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_)
复制代码
ctgwglzc
2009-9-22 01:41:37
楼主
MagicType1Set.h
  1. #if !defined(AFX_MAGICTYPE1SET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_)
  2. #define AFX_MAGICTYPE1SET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_

  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MagicType1Set.h : header file
  7. //

  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMagicType1Set recordset

  10. class CMagicType1Set : public CRecordset
  11. {
  12. public:
  13.     CMagicType1Set(CDatabase* pDatabase = NULL);
  14.     DECLARE_DYNAMIC(CMagicType1Set)

  15.     // Field/Param Data
  16.     //{{AFX_FIELD(CMagicType1Set, CRecordset)
  17.     long    m_iNum;
  18.     CString    m_Name;
  19.     CString    m_Description;
  20.     BYTE    m_Type;
  21.     int        m_HitRate;
  22.     int        m_Hit;
  23.     BYTE    m_Delay;
  24.     BYTE    m_ComboType;
  25.     BYTE    m_ComboCount;
  26.     int        m_ComboDamage;
  27.     int        m_Range;
  28.     //}}AFX_FIELD


  29.     // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CMagicType1Set)
  32. public:
  33.     virtual CString GetDefaultConnect();    // Default connection string
  34.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  35.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  36.     //}}AFX_VIRTUAL

  37.     // Implementation
  38. #ifdef _DEBUG
  39.     virtual void AssertValid() const;
  40.     virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. };

  43. //{{AFX_INSERT_LOCATION}}
  44. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.

  45. #endif // !defined(AFX_MAGICTYPE1SET_H__05C21F9B_4066_44D8_92ED_AA39405D389F__INCLUDED_)
复制代码
ctgwglzc
2009-9-22 01:41:50
楼主
MagicType1Set.cpp
  1. // MagicType1Set.cpp : implementation file
  2. //

  3. #include "stdafx.h"
  4. #include "server.h"
  5. #include "MagicType1Set.h"

  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif

  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMagicType1Set

  13. IMPLEMENT_DYNAMIC(CMagicType1Set, CRecordset)

  14. CMagicType1Set::CMagicType1Set(CDatabase* pdb)
  15. : CRecordset(pdb)
  16. {
  17.     //{{AFX_FIELD_INIT(CMagicType1Set)
  18.     m_iNum = 0;
  19.     m_Name = _T("");
  20.     m_Description = _T("");
  21.     m_Type = 0;
  22.     m_HitRate = 0;
  23.     m_Hit = 0;
  24.     m_Delay = 0;
  25.     m_ComboType = 0;
  26.     m_ComboCount = 0;
  27.     m_ComboDamage = 0;
  28.     m_Range = 0;
  29.     m_nFields = 11;
  30.     //}}AFX_FIELD_INIT
  31.     m_nDefaultType = snapshot;
  32. }


  33. CString CMagicType1Set::GetDefaultConnect()
  34. {
  35.     return _T("ODBC;DSN=KN_Online;UID=knight;PWD=knight");
  36. }

  37. CString CMagicType1Set::GetDefaultSQL()
  38. {
  39.     return _T("[dbo].[MAGIC_TYPE1]");
  40. }

  41. void CMagicType1Set::DoFieldExchange(CFieldExchange* pFX)
  42. {
  43.     //{{AFX_FIELD_MAP(CMagicType1Set)
  44.     pFX->SetFieldType(CFieldExchange::outputColumn);
  45.     RFX_Long(pFX, _T("[iNum]"), m_iNum);
  46.     RFX_Text(pFX, _T("[Name]"), m_Name);
  47.     RFX_Text(pFX, _T("[Description]"), m_Description);
  48.     RFX_Byte(pFX, _T("[Type]"), m_Type);
  49.     RFX_Int(pFX, _T("[HitRate]"), m_HitRate);
  50.     RFX_Int(pFX, _T("[Hit]"), m_Hit);
  51.     RFX_Byte(pFX, _T("[Delay]"), m_Delay);
  52.     RFX_Byte(pFX, _T("[ComboType]"), m_ComboType);
  53.     RFX_Byte(pFX, _T("[ComboCount]"), m_ComboCount);
  54.     RFX_Int(pFX, _T("[ComboDamage]"), m_ComboDamage);
  55.     RFX_Int(pFX, _T("[Range]"), m_Range);
  56.     //}}AFX_FIELD_MAP
  57. }

  58. /////////////////////////////////////////////////////////////////////////////
  59. // CMagicType1Set diagnostics

  60. #ifdef _DEBUG
  61. void CMagicType1Set::AssertValid() const
  62. {
  63.     CRecordset::AssertValid();
  64. }

  65. void CMagicType1Set::Dump(CDumpContext& dc) const
  66. {
  67.     CRecordset::Dump(dc);
  68. }
  69. #endif //_DEBUG
复制代码
ctgwglzc
2009-9-22 01:42:14
楼主
MagicType2Set.h
  1. #if !defined(AFX_MAGICTYPE2SET_H__BCF18D34_77DB_4B67_9556_41C14D524D57__INCLUDED_)
  2. #define AFX_MAGICTYPE2SET_H__BCF18D34_77DB_4B67_9556_41C14D524D57__INCLUDED_

  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MagicType2Set.h : header file
  7. //

  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMagicType2Set recordset

  10. class CMagicType2Set : public CRecordset
  11. {
  12. public:
  13.     CMagicType2Set(CDatabase* pDatabase = NULL);
  14.     DECLARE_DYNAMIC(CMagicType2Set)

  15. // Field/Param Data
  16.     //{{AFX_FIELD(CMagicType2Set, CRecordset)
  17.     long    m_iNum;
  18.     CString    m_Name;
  19.     CString    m_Description;
  20.     BYTE    m_HitType;
  21.     int        m_HitRate;
  22.     int        m_AddDamage;
  23.     int        m_AddRange;
  24.     BYTE    m_NeedArrow;
  25.     int        m_AddDamagePlus;
  26.     //}}AFX_FIELD


  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CMagicType2Set)
  30.     public:
  31.     virtual CString GetDefaultConnect();    // Default connection string
  32.     virtual CString GetDefaultSQL();    // Default SQL for Recordset
  33.     virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  34.     //}}AFX_VIRTUAL

  35. // Implementation
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. };

  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.

  43. #endif // !defined(AFX_MAGICTYPE2SET_H__BCF18D34_77DB_4B67_9556_41C14D524D57__INCLUDED_)
复制代码
12下一页
高级模式
游客