WeaponClass.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:3k
- // WeaponClass.cpp: implementation of the CWeaponClass class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "WeaponClass.h"
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CWeaponClass::CWeaponClass()
- {
-
- }
- CWeaponClass::~CWeaponClass()
- {
- // delete lpGoods;
- // delete lpWeapon;
- }
- void CWeaponClass::InitWeapon(char *szFileName)
- {
- FILE *fp;
- char szBuf[100];
- CString szStr;
- int nValue =0;
- TGoods *Goods;
- TWeapon *Weapon;
- Goods = new TGoods;
- Weapon = new TWeapon;
- Goods->nKinds = GK_weapon; //贺摸
- fp = fopen(szFileName,"r");
- if(fp!=NULL)
- {
- while(fscanf(fp,"%s",szBuf)!=EOF)
- {
- szStr = szBuf;
- if(szStr=="いゅ