您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ IsEffectInSpell函数代码示例

51自学网 2021-06-01 21:40:58
  C++
这篇教程C++ IsEffectInSpell函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中IsEffectInSpell函数的典型用法代码示例。如果您正苦于以下问题:C++ IsEffectInSpell函数的具体用法?C++ IsEffectInSpell怎么用?C++ IsEffectInSpell使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了IsEffectInSpell函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: IsBeneficialSpell

bool IsBeneficialSpell(uint16 spell_id){	if(!IsValidSpell(spell_id))		return false;	if(spells[spell_id].goodEffect == 1){		SpellTargetType tt = spells[spell_id].targettype;		if(tt != ST_Self && tt != ST_Pet){			if(IsEffectInSpell(spell_id, SE_CancelMagic))				return false;		}				if(tt == ST_Target || tt == ST_AETarget || tt == ST_Animal || tt == ST_Undead || tt == ST_Pet) {			uint16 sai = spells[spell_id].SpellAffectIndex;			if(spells[spell_id].resisttype == RESIST_MAGIC){				if(sai == SAI_Calm || sai == SAI_Dispell_Sight || sai == SAI_Memory_Blur || sai == SAI_Calm_Song)					return false;			}else{				// Bind Sight and Cast Sight				if(sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 && !IsEffectInSpell(spell_id, SE_VoiceGraft))					return false;			}		}	}	return spells[spell_id].goodEffect != 0 || IsGroupSpell(spell_id);}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:25,


示例2: IsSummonPetSpell

bool IsSummonPetSpell(uint16 spell_id){	return	(		IsEffectInSpell(spell_id, SE_SummonPet) ||		IsEffectInSpell(spell_id, SE_SummonBSTPet)	);}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,


示例3: IsMaloSpell

bool IsMaloSpell(int16 spell_id) {	if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_ResistFire) && IsEffectInSpell(spell_id, SE_ResistCold) && IsEffectInSpell(spell_id, SE_ResistPoison) && IsEffectInSpell(spell_id, SE_ResistMagic)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例4: IsSummonPetSpell

bool IsSummonPetSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_SummonPet) ||			IsEffectInSpell(spell_id, SE_SummonBSTPet))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:8,


示例5: IsLDoNObjectSpell

bool IsLDoNObjectSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_AppraiseLDonChest) ||			IsEffectInSpell(spell_id, SE_DisarmLDoNTrap) ||			IsEffectInSpell(spell_id, SE_UnlockLDoNChest))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:9,


示例6: IsSelfConversionSpell

bool IsSelfConversionSpell(uint16 spell_id){	if (GetSpellTargetType(spell_id) == ST_Self && IsEffectInSpell(spell_id, SE_CurrentMana) &&			IsEffectInSpell(spell_id, SE_CurrentHP) && spells[spell_id].base[GetSpellEffectIndex(spell_id, SE_CurrentMana)] > 0 &&			spells[spell_id].base[GetSpellEffectIndex(spell_id, SE_CurrentHP)] < 0)		return true;	else		return false;}
开发者ID:gforce215,项目名称:Server,代码行数:9,


示例7: IsDebuffSpell

bool IsDebuffSpell(uint16 spell_id) {        if(IsBeneficialSpell(spell_id) || IsEffectHitpointsSpell(spell_id) || IsStunSpell(spell_id) || IsMezSpell(spell_id) 			|| IsCharmSpell(spell_id) || IsSlowSpell(spell_id) || IsEffectInSpell(spell_id, SE_Root) || IsEffectInSpell(spell_id, SE_CancelMagic)			|| IsEffectInSpell(spell_id, SE_MovementSpeed) || IsFearSpell(spell_id) || IsEffectInSpell(spell_id, SE_Calm))                return false;        else                return true;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:9,


示例8: IsResistDebuffSpell

bool IsResistDebuffSpell(uint16 spell_id) {        if((IsEffectInSpell(spell_id, SE_ResistFire) || IsEffectInSpell(spell_id, SE_ResistCold) || IsEffectInSpell(spell_id, SE_ResistPoison)			 || IsEffectInSpell(spell_id, SE_ResistDisease) || IsEffectInSpell(spell_id, SE_ResistMagic) || IsEffectInSpell(spell_id, SE_ResistAll)			 || IsEffectInSpell(spell_id, SE_ResistCorruption)) && !IsBeneficialSpell(spell_id))                return true;        else                return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:9,


示例9: IsPartialCapableSpell

bool IsPartialCapableSpell(uint16 spell_id){	if(IsPureNukeSpell(spell_id) || 		IsFearSpell(spell_id) || 		IsEffectInSpell(spell_id, SE_Root) || 		IsEffectInSpell(spell_id, SE_Charm))	{		return true;	}	return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:12,


示例10: IsSuccorSpell

bool IsSuccorSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_Succor))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例11: IsHealOverTimeSpell

bool IsHealOverTimeSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_HealOverTime) && !IsGroupSpell(spell_id))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例12: IsPlayerIllusionSpell

// seveian 2008-09-23bool IsPlayerIllusionSpell(uint16 spell_id) {	if(IsEffectInSpell(spell_id, SE_Illusion) && spells[spell_id].targettype == ST_Self)		return true;	else		return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,


示例13: IsGateSpell

bool IsGateSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_Gate))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例14: IsCompleteHealSpell

bool IsCompleteHealSpell(uint16 spell_id) {		if(spell_id == 13 || IsEffectInSpell(spell_id, SE_CompleteHeal) || IsPercentalHealSpell(spell_id) && !IsGroupSpell(spell_id))		return true;	else		return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:7,


示例15: IsShadowStepSpell

bool IsShadowStepSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_ShadowStep))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例16: IsTeleportSpell

bool IsTeleportSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_Teleport))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例17: IsDeathSaveSpell

bool IsDeathSaveSpell(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_DeathSave))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例18: IsAllianceSpellLine

bool IsAllianceSpellLine(uint16 spell_id){	if (IsEffectInSpell(spell_id, SE_AddFaction))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,


示例19: IsAllianceSpellLine

bool IsAllianceSpellLine(uint16 spell_id) {	bool Result = false;	if(IsValidSpell(spell_id))		Result = IsEffectInSpell(spell_id, SE_AddFaction);	return Result;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,


示例20: IsDispellSpell

bool IsDispellSpell(int16 spell_id) {	if (IsEffectInSpell(spell_id, SE_CancelMagic)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例21: IsSuccorSpell

bool IsSuccorSpell(int16 spell_id) {	if (IsEffectInSpell(spell_id, SE_Succor)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例22: IsTeleportSpell

bool IsTeleportSpell(int16 spell_id) {	if (IsEffectInSpell(spell_id, SE_Teleport)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例23: IsSnareSpell

bool IsSnareSpell(int16 spell_id) {	if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_MovementSpeed)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例24: IsDeathSaveSpell

bool IsDeathSaveSpell(uint16 spell_id) {	bool Result = false;	if(IsValidSpell(spell_id))		Result = IsEffectInSpell(spell_id, SE_DeathSave);	return Result;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,


示例25: IsGateSpell

bool IsGateSpell(int16 spell_id) {	if (IsEffectInSpell(spell_id, SE_Gate)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例26: IsRootSpell

bool IsRootSpell(int16 spell_id) {	if (IsEffectInSpell(spell_id, SE_Root)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例27: IsPoisonSpell

bool IsPoisonSpell(int16 spell_id) {	if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_PoisonCounter)){		return true;	}	else {		return false;	}}
开发者ID:Xackery,项目名称:provztz,代码行数:8,


示例28: IsTGBCompatibleSpell

// checks if this spell can be targetedbool IsTGBCompatibleSpell(uint16 spell_id){	if (IsValidSpell(spell_id) &&			(!IsDetrimentalSpell(spell_id) && spells[spell_id].buffduration != 0 &&			 !IsBardSong(spell_id) && !IsEffectInSpell(spell_id, SE_Illusion)))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:10,


示例29: IsBeneficialSpell

bool IsBeneficialSpell(uint16 spell_id){	if (!IsValidSpell(spell_id))		return false;	// You'd think just checking goodEffect flag would be enough?	if (spells[spell_id].goodEffect == 1) {		// If the target type is ST_Self or ST_Pet and is a SE_CancleMagic spell		// it is not Beneficial		SpellTargetType tt = spells[spell_id].targettype;		if (tt != ST_Self && tt != ST_Pet &&				IsEffectInSpell(spell_id, SE_CancelMagic))			return false;		// When our targettype is ST_Target, ST_AETarget, ST_Aniaml, ST_Undead, or ST_Pet		// We need to check more things!		if (tt == ST_Target || tt == ST_AETarget || tt == ST_Animal ||				tt == ST_Undead || tt == ST_Pet) {			uint16 sai = spells[spell_id].SpellAffectIndex;			// If the resisttype is magic and SpellAffectIndex is Calm/memblur/dispell sight			// it's not beneficial			if (spells[spell_id].resisttype == RESIST_MAGIC) {				if (sai == SAI_Calm || sai == SAI_Dispell_Sight ||						sai == SAI_Memory_Blur || sai == SAI_Calm_Song)					return false;			} else {				// If the resisttype is not magic and spell is Bind Sight or Cast Sight				// It's not beneficial				if (sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 &&						!IsEffectInSpell(spell_id, SE_VoiceGraft))					return false;			}		}	}	// And finally, if goodEffect is not 0 or if it's a group spell it's beneficial	return spells[spell_id].goodEffect != 0 || IsGroupSpell(spell_id);}
开发者ID:gforce215,项目名称:Server,代码行数:39,


示例30: IsPureNukeSpell

bool IsPureNukeSpell(uint16 spell_id){	int i, effect_count = 0;	if (!IsValidSpell(spell_id))		return false;	for (i = 0; i < EFFECT_COUNT; i++)		if (!IsBlankSpellEffect(spell_id, i))			effect_count++;	if (effect_count == 1 && IsEffectInSpell(spell_id, SE_CurrentHP) &&			spells[spell_id].buffduration == 0 && IsDamageSpell(spell_id))		return true;	return false;}
开发者ID:gforce215,项目名称:Server,代码行数:17,



注:本文中的IsEffectInSpell函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ IsEmpty函数代码示例
C++ IsEffectActive函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。