@@ -534,19 +534,21 @@ u32 CSE_ALifeObject::ef_detector_type() const
534534 return (u32 (-1 ));
535535}
536536
537- bool CSE_ALifeObject::used_ai_locations () const { return (!!m_flags.is (flUsedAI_Locations)); }
538- bool CSE_ALifeObject::can_switch_online () const { return (match_configuration () && !!m_flags.is (flSwitchOnline)); }
539- bool CSE_ALifeObject::can_switch_offline () const { return (!match_configuration () || !!m_flags.is (flSwitchOffline)); }
540- bool CSE_ALifeObject::can_save () const { return (!!m_flags.is (flCanSave)); }
541- bool CSE_ALifeObject::interactive () const
542- {
543- return (!!m_flags.is (flInteractive) && !!m_flags.is (flVisibleForAI) && !!m_flags.is (flUsefulForAI));
544- }
537+ bool CSE_ALifeObject::used_ai_locations () const throw()
538+ { return !!m_flags.is (flUsedAI_Locations); }
539+ bool CSE_ALifeObject::can_switch_online () const throw()
540+ { return match_configuration () && !!m_flags.is (flSwitchOnline); }
541+ bool CSE_ALifeObject::can_switch_offline () const throw()
542+ { return !match_configuration () || !!m_flags.is (flSwitchOffline); }
543+ bool CSE_ALifeObject::can_save () const throw()
544+ { return !!m_flags.is (flCanSave); }
545+ bool CSE_ALifeObject::interactive () const throw()
546+ { return !!m_flags.is (flInteractive) && !!m_flags.is (flVisibleForAI) && !!m_flags.is (flUsefulForAI); }
545547
546548void CSE_ALifeObject::use_ai_locations (bool value) { m_flags.set (flUsedAI_Locations, BOOL (value)); }
547- void CSE_ALifeObject::can_switch_online (bool value) { m_flags.set (flSwitchOnline, BOOL (value)); }
548- void CSE_ALifeObject::can_switch_offline (bool value) { m_flags.set (flSwitchOffline, BOOL (value)); }
549- void CSE_ALifeObject::interactive (bool value) { m_flags.set (flInteractive, BOOL (value)); }
549+ void CSE_ALifeObject::can_switch_online (bool value) throw() { m_flags.set (flSwitchOnline, BOOL (value)); }
550+ void CSE_ALifeObject::can_switch_offline (bool value) throw() { m_flags.set (flSwitchOffline, BOOL (value)); }
551+ void CSE_ALifeObject::interactive (bool value) throw() { m_flags.set (flInteractive, BOOL (value)); }
550552// //////////////////////////////////////////////////////////////////////////
551553// CSE_ALifeGroupAbstract
552554// //////////////////////////////////////////////////////////////////////////
@@ -688,8 +690,8 @@ void CSE_ALifePHSkeletonObject::UPDATE_Read(NET_Packet& tNetPacket)
688690 inherited2::UPDATE_Read (tNetPacket);
689691};
690692
691- bool CSE_ALifePHSkeletonObject::can_save () const { return CSE_PHSkeleton::need_save (); }
692- bool CSE_ALifePHSkeletonObject::used_ai_locations () const { return false ; }
693+ bool CSE_ALifePHSkeletonObject::can_save () const throw() { return CSE_PHSkeleton::need_save (); }
694+ bool CSE_ALifePHSkeletonObject::used_ai_locations () const throw() { return false ; }
693695#ifndef XRGAME_EXPORTS
694696void CSE_ALifePHSkeletonObject::FillProps (LPCSTR pref, PropItemVec& items)
695697{
@@ -711,8 +713,8 @@ CSE_ALifeSpaceRestrictor::CSE_ALifeSpaceRestrictor(LPCSTR caSection) : CSE_ALife
711713}
712714
713715CSE_ALifeSpaceRestrictor::~CSE_ALifeSpaceRestrictor () {}
714- bool CSE_ALifeSpaceRestrictor::can_switch_offline () const { return ( false ) ; }
715- bool CSE_ALifeSpaceRestrictor::used_ai_locations () const { return ( false ) ; }
716+ bool CSE_ALifeSpaceRestrictor::can_switch_offline () const throw() { return false ; }
717+ bool CSE_ALifeSpaceRestrictor::used_ai_locations () const throw() { return false ; }
716718IServerEntityShape* CSE_ALifeSpaceRestrictor::shape () { return (this ); }
717719void CSE_ALifeSpaceRestrictor::STATE_Read (NET_Packet& tNetPacket, u16 size)
718720{
@@ -1133,8 +1135,8 @@ void CSE_ALifeObjectPhysic::FillProps(LPCSTR pref, PropItemVec& values)
11331135}
11341136#endif // #ifndef XRGAME_EXPORTS
11351137
1136- bool CSE_ALifeObjectPhysic::used_ai_locations () const { return ( false ) ; }
1137- bool CSE_ALifeObjectPhysic::can_save () const { return CSE_PHSkeleton::need_save (); }
1138+ bool CSE_ALifeObjectPhysic::used_ai_locations () const throw() { return false ; }
1139+ bool CSE_ALifeObjectPhysic::can_save () const throw() { return CSE_PHSkeleton::need_save (); }
11381140// //////////////////////////////////////////////////////////////////////////
11391141// CSE_ALifeObjectHangingLamp
11401142// //////////////////////////////////////////////////////////////////////////
@@ -1403,7 +1405,7 @@ CDUInterface* du, IServerEntityLEOwner* owner, bool bSelected, const Fmatrix& pa
14031405}
14041406#endif // #ifndef XRGAME_EXPORTS
14051407
1406- bool CSE_ALifeObjectHangingLamp::used_ai_locations () const { return ( false ) ; }
1408+ bool CSE_ALifeObjectHangingLamp::used_ai_locations () const throw() { return false ; }
14071409bool CSE_ALifeObjectHangingLamp::validate ()
14081410{
14091411 if (flags.test (flR1) || flags.test (flR2))
@@ -1413,7 +1415,7 @@ bool CSE_ALifeObjectHangingLamp::validate()
14131415 return (false );
14141416}
14151417
1416- bool CSE_ALifeObjectHangingLamp::match_configuration () const
1418+ bool CSE_ALifeObjectHangingLamp::match_configuration () const throw()
14171419{
14181420 R_ASSERT3 (flags.test (flR1) || flags.test (flR2), " no renderer type set for hanging-lamp " , name_replace ());
14191421#ifdef XRGAME_EXPORTS
@@ -1443,7 +1445,7 @@ void CSE_ALifeObjectProjector::UPDATE_Write(NET_Packet& tNetPacket) { inherited:
14431445void CSE_ALifeObjectProjector::FillProps (LPCSTR pref, PropItemVec& values) { inherited::FillProps (pref, values); }
14441446#endif // #ifndef XRGAME_EXPORTS
14451447
1446- bool CSE_ALifeObjectProjector::used_ai_locations () const { return ( false ) ; }
1448+ bool CSE_ALifeObjectProjector::used_ai_locations () const throw() { return false ; }
14471449// //////////////////////////////////////////////////////////////////////////
14481450// CSE_ALifeSchedulable
14491451// //////////////////////////////////////////////////////////////////////////
@@ -1547,7 +1549,7 @@ void CSE_ALifeHelicopter::load(NET_Packet& tNetPacket)
15471549 inherited1::load (tNetPacket);
15481550 inherited3::load (tNetPacket);
15491551}
1550- bool CSE_ALifeHelicopter::can_save () const { return CSE_PHSkeleton::need_save (); }
1552+ bool CSE_ALifeHelicopter::can_save () const throw() { return CSE_PHSkeleton::need_save (); }
15511553#ifndef XRGAME_EXPORTS
15521554void CSE_ALifeHelicopter::FillProps (LPCSTR pref, PropItemVec& values)
15531555{
@@ -1559,7 +1561,7 @@ void CSE_ALifeHelicopter::FillProps(LPCSTR pref, PropItemVec& values)
15591561}
15601562#endif // #ifndef XRGAME_EXPORTS
15611563
1562- bool CSE_ALifeHelicopter::used_ai_locations () const { return ( false ) ; }
1564+ bool CSE_ALifeHelicopter::used_ai_locations () const throw() { return false ; }
15631565// //////////////////////////////////////////////////////////////////////////
15641566// CSE_ALifeCar
15651567// //////////////////////////////////////////////////////////////////////////
@@ -1606,8 +1608,8 @@ void CSE_ALifeCar::UPDATE_Write(NET_Packet& tNetPacket)
16061608 inherited2::UPDATE_Write (tNetPacket);
16071609}
16081610
1609- bool CSE_ALifeCar::used_ai_locations () const { return ( false ) ; }
1610- bool CSE_ALifeCar::can_save () const { return CSE_PHSkeleton::need_save (); }
1611+ bool CSE_ALifeCar::used_ai_locations () const throw() { return false ; }
1612+ bool CSE_ALifeCar::can_save () const throw() { return CSE_PHSkeleton::need_save (); }
16111613void CSE_ALifeCar::load (NET_Packet& tNetPacket)
16121614{
16131615 inherited1::load (tNetPacket);
@@ -1722,8 +1724,8 @@ void CSE_ALifeObjectBreakable::FillProps(LPCSTR pref, PropItemVec& values)
17221724}
17231725#endif // #ifndef XRGAME_EXPORTS
17241726
1725- bool CSE_ALifeObjectBreakable::used_ai_locations () const { return ( false ) ; }
1726- bool CSE_ALifeObjectBreakable::can_switch_offline () const { return ( false ) ; }
1727+ bool CSE_ALifeObjectBreakable::used_ai_locations () const throw() { return false ; }
1728+ bool CSE_ALifeObjectBreakable::can_switch_offline () const throw() { return false ; }
17271729// //////////////////////////////////////////////////////////////////////////
17281730// CSE_ALifeObjectClimable
17291731// //////////////////////////////////////////////////////////////////////////
@@ -1784,8 +1786,8 @@ void CSE_ALifeObjectClimable::set_additional_info(void* info)
17841786}
17851787#endif // #ifndef XRGAME_EXPORTS
17861788
1787- bool CSE_ALifeObjectClimable::used_ai_locations () const { return ( false ) ; }
1788- bool CSE_ALifeObjectClimable::can_switch_offline () const { return ( false ) ; }
1789+ bool CSE_ALifeObjectClimable::used_ai_locations () const throw() { return false ; }
1790+ bool CSE_ALifeObjectClimable::can_switch_offline () const throw() { return false ; }
17891791// //////////////////////////////////////////////////////////////////////////
17901792// CSE_ALifeMountedWeapon
17911793// //////////////////////////////////////////////////////////////////////////
0 commit comments