本文整理汇总了C++中gameinfo_import_t类的典型用法代码示例。如果您正苦于以下问题:C++ gameinfo_import_t类的具体用法?C++ gameinfo_import_t怎么用?C++ gameinfo_import_t使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了gameinfo_import_t类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: WPN_AltFiringFrc
//--------------------------------------------
void WPN_AltFiringFrc( const char **holdBuf )
{
const char *tokenStr;
int len;
if ( COM_ParseString( holdBuf,&tokenStr ))
{
return;
}
len = strlen( tokenStr );
len++;
if (len > 64)
{
len = 64;
gi.Printf(S_COLOR_YELLOW"WARNING: altFiringFrc too long in external WEAPONS.DAT '%s'\n", tokenStr);
}
#ifdef _IMMERSION
Q_strncpyz( weaponData[wpnParms.weaponNum].altFiringFrc,tokenStr,len);
#endif
}
开发者ID:Drakesinger,项目名称:jediacademypc,代码行数:24,代码来源:g_weaponLoad.cpp
示例2: WPN_WeaponType
void WPN_WeaponType( const char **holdBuf)
{
int weaponNum;
const char *tokenStr;
if (COM_ParseString(holdBuf,&tokenStr))
{
return;
}
// FIXME : put this in an array (maybe a weaponDataInternal array???)
if (!Q_stricmp(tokenStr,"WP_NONE"))
weaponNum = WP_NONE;
else if (!Q_stricmp(tokenStr,"WP_SABER"))
weaponNum = WP_SABER;
else if (!Q_stricmp(tokenStr,"WP_BLASTER_PISTOL"))
weaponNum = WP_BLASTER_PISTOL;
else if (!Q_stricmp(tokenStr,"WP_BRYAR_PISTOL"))
weaponNum = WP_BRYAR_PISTOL;
else if (!Q_stricmp(tokenStr,"WP_BLASTER"))
weaponNum = WP_BLASTER;
else if (!Q_stricmp(tokenStr,"WP_DISRUPTOR"))
weaponNum = WP_DISRUPTOR;
else if (!Q_stricmp(tokenStr,"WP_BOWCASTER"))
weaponNum = WP_BOWCASTER;
else if (!Q_stricmp(tokenStr,"WP_REPEATER"))
weaponNum = WP_REPEATER;
else if (!Q_stricmp(tokenStr,"WP_DEMP2"))
weaponNum = WP_DEMP2;
else if (!Q_stricmp(tokenStr,"WP_FLECHETTE"))
weaponNum = WP_FLECHETTE;
else if (!Q_stricmp(tokenStr,"WP_ROCKET_LAUNCHER"))
weaponNum = WP_ROCKET_LAUNCHER;
else if (!Q_stricmp(tokenStr,"WP_CONCUSSION"))
weaponNum = WP_CONCUSSION;
else if (!Q_stricmp(tokenStr,"WP_THERMAL"))
weaponNum = WP_THERMAL;
else if (!Q_stricmp(tokenStr,"WP_TRIP_MINE"))
weaponNum = WP_TRIP_MINE;
else if (!Q_stricmp(tokenStr,"WP_DET_PACK"))
weaponNum = WP_DET_PACK;
else if (!Q_stricmp(tokenStr,"WP_STUN_BATON"))
weaponNum = WP_STUN_BATON;
else if (!Q_stricmp(tokenStr,"WP_BOT_LASER"))
weaponNum = WP_BOT_LASER;
else if (!Q_stricmp(tokenStr,"WP_EMPLACED_GUN"))
weaponNum = WP_EMPLACED_GUN;
else if (!Q_stricmp(tokenStr,"WP_MELEE"))
weaponNum = WP_MELEE;
else if (!Q_stricmp(tokenStr,"WP_TURRET"))
weaponNum = WP_TURRET;
else if (!Q_stricmp(tokenStr,"WP_ATST_MAIN"))
weaponNum = WP_ATST_MAIN;
else if (!Q_stricmp(tokenStr,"WP_ATST_SIDE"))
weaponNum = WP_ATST_SIDE;
else if (!Q_stricmp(tokenStr,"WP_TIE_FIGHTER"))
weaponNum = WP_TIE_FIGHTER;
else if (!Q_stricmp(tokenStr,"WP_RAPID_FIRE_CONC"))
weaponNum = WP_RAPID_FIRE_CONC;
else if (!Q_stricmp(tokenStr,"WP_JAWA"))
weaponNum = WP_JAWA;
else if (!Q_stricmp(tokenStr,"WP_TUSKEN_RIFLE"))
weaponNum = WP_TUSKEN_RIFLE;
else if (!Q_stricmp(tokenStr,"WP_TUSKEN_STAFF"))
weaponNum = WP_TUSKEN_STAFF;
else if (!Q_stricmp(tokenStr,"WP_SCEPTER"))
weaponNum = WP_SCEPTER;
else if (!Q_stricmp(tokenStr,"WP_NOGHRI_STICK"))
weaponNum = WP_NOGHRI_STICK;
else
{
weaponNum = 0;
gi.Printf(S_COLOR_YELLOW"WARNING: bad weapontype in external weapon data '%s'\n", tokenStr);
}
wpnParms.weaponNum = weaponNum;
}
开发者ID:3ddy,项目名称:Jedi-Academy,代码行数:77,代码来源:g_weaponLoad.cpp
注:本文中的gameinfo_import_t类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论