WEAPHOLD.CPP
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #include <stdafx.h>
- #include <weaphold.h>
- static CString& ConvertType(WeaponType type);
- weaponholder::weaponholder(WeaponType type)
- : landscape(ConvertType(type))
- {
- m_type = WEAPONHOLDER;
- m_hhtype = type;
- }
- CString& ConvertType(WeaponType type)
- {
- static CString val;
- switch (type)
- {
- case SWORD:
- val = "level9\SWORD1.IMG";
- break;
- case SHIELD:
- val = "level10\SHIELD1.IMG";
- break;
- default:
- val = "level6\KNIFE1.IMG";
- break;
- }
- return val;
- }