| 2462 | return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::FlyingBuilding); |
| 2463 | } |
| 2464 | bool UnitType::isNeutral() const |
| 2465 | { |
| 2466 | return this->getRace() == Races::None && |
| 2467 | (this->isCritter() || this->isResourceContainer() || this->isSpell()); |
| 2468 | } |
| 2469 | bool UnitType::isHero() const |
| 2470 | { |
| 2471 | return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Hero) || |