本文整理汇总了C++中Projectile::SetEffects方法的典型用法代码示例。如果您正苦于以下问题:C++ Projectile::SetEffects方法的具体用法?C++ Projectile::SetEffects怎么用?C++ Projectile::SetEffects使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Projectile
的用法示例。
在下文中一共展示了Projectile::SetEffects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetExtHeader
Projectile *Spell::GetProjectile(Scriptable *self, int header, int level, const Point &target) const
{
SPLExtHeader *seh = GetExtHeader(header);
if (!seh) {
Log(ERROR, "Spell", "Cannot retrieve spell header!!! required header: %d, maximum: %d",
header, (int) ExtHeaderCount);
return NULL;
}
Projectile *pro = core->GetProjectileServer()->GetProjectileByIndex(seh->ProjectileAnimation);
if (seh->FeatureCount) {
pro->SetEffects(GetEffectBlock(self, target, header, level, seh->ProjectileAnimation));
}
return pro;
}
示例2: GetExtHeader
//returns a projectile loaded with the effect queue
Projectile *Item::GetProjectile(Scriptable *self, int header, const Point &target, ieDwordSigned invslot, int miss) const
{
ITMExtHeader *eh = GetExtHeader(header);
if (!eh) {
return NULL;
}
ieDword idx = eh->ProjectileAnimation;
Projectile *pro = core->GetProjectileServer()->GetProjectileByIndex(idx);
int usage ;
if (header>= 0)
usage = header;
else
usage = GetWeaponHeaderNumber(header==-2);
if (!miss) {
EffectQueue *fx = GetEffectBlock(self, target, usage, invslot, idx);
pro->SetEffects(fx);
}
return pro;
}