FireRatEnemy::FireRatEnemy(Level* level, LevelMainCharacter* mainChar) : Enemy(level, mainChar, EnemyID::FireRat) { load(); loadAttributes(); loadSpells(); m_jumpHeight = getConfiguredMaxVelocityY() * getConfiguredMaxVelocityY() / (2 * getConfiguredGravityAcceleration()); }
void GargoyleEnemy::setSummoned(int strength, int damage, int count, const sf::Time& ttl) { m_isSummoned = true; m_spellStrength = strength; m_spellCount = count; m_spellAdditionalDamage = damage; loadSpells(); loadAnimation(m_spellStrength - 1); setAlly(ttl); }