@@ -22,41 +22,41 @@ IC CConditionStateAbstract::CConditionState()
2222TEMPLATE_SPECIALIZATION
2323CConditionStateAbstract::~CConditionState () {}
2424TEMPLATE_SPECIALIZATION
25- IC const xr_vector<typename CConditionStateAbstract::COperatorCondition >& CConditionStateAbstract::conditions () const
25+ IC const xr_vector<_world_property >& CConditionStateAbstract::conditions () const
2626{
2727 return (m_conditions);
2828}
2929
3030TEMPLATE_SPECIALIZATION
31- IC void CConditionStateAbstract::add_condition_back (const COperatorCondition & condition)
31+ IC void CConditionStateAbstract::add_condition_back (const _world_property & condition)
3232{
3333 THROW (m_conditions.empty () || (m_conditions.back ().condition () < condition.condition ()));
3434 m_conditions.push_back (condition);
3535 m_hash ^= condition.hash_value ();
3636}
3737
3838TEMPLATE_SPECIALIZATION
39- IC void CConditionStateAbstract::add_condition (const COperatorCondition & condition)
39+ IC void CConditionStateAbstract::add_condition (const _world_property & condition)
4040{
41- typename xr_vector<COperatorCondition >::iterator I = std::lower_bound (m_conditions.begin (), m_conditions.end (), condition);
41+ typename xr_vector<_world_property >::iterator I = std::lower_bound (m_conditions.begin (), m_conditions.end (), condition);
4242 THROW ((I == m_conditions.end ()) || ((*I).condition () != condition.condition ()));
4343 m_conditions.insert (I, condition);
4444 m_hash ^= condition.hash_value ();
4545}
4646
4747TEMPLATE_SPECIALIZATION
48- IC void CConditionStateAbstract::remove_condition (const typename COperatorCondition::_condition_type & condition)
48+ IC void CConditionStateAbstract::remove_condition (const typename _world_property::condition_type & condition)
4949{
50- typename xr_vector<COperatorCondition >::iterator I = std::lower_bound (
51- m_conditions.begin (), m_conditions.end (), COperatorCondition (condition, COperatorCondition::_value_type (0 )));
50+ typename xr_vector<_world_property >::iterator I = std::lower_bound (
51+ m_conditions.begin (), m_conditions.end (), _world_property (condition, typename _world_property::value_type (0 )));
5252 THROW ((I != m_conditions.end ()) && ((*I).condition () == condition));
5353 m_hash ^= (*I).hash_value ();
5454 m_conditions.erase (I);
5555}
5656
5757TEMPLATE_SPECIALIZATION
5858IC void CConditionStateAbstract::add_condition (
59- typename xr_vector<COperatorCondition >::const_iterator& J, const COperatorCondition & condition)
59+ typename xr_vector<_world_property >::const_iterator& J, const _world_property & condition)
6060{
6161 m_conditions.insert (m_conditions.begin () + (J - m_conditions.begin ()), condition);
6262 m_hash ^= condition.hash_value ();
@@ -70,13 +70,13 @@ IC void CConditionStateAbstract::clear()
7070}
7171
7272TEMPLATE_SPECIALIZATION
73- IC u8 CConditionStateAbstract::weight (const CConditionState & condition) const
73+ IC u8 CConditionStateAbstract::weight (const _world_property & condition) const
7474{
7575 u8 result = 0 ;
76- typename xr_vector<COperatorCondition >::const_iterator I = conditions ().begin ();
77- typename xr_vector<COperatorCondition >::const_iterator E = conditions ().end ();
78- typename xr_vector<COperatorCondition >::const_iterator i = condition.conditions ().begin ();
79- typename xr_vector<COperatorCondition >::const_iterator e = condition.conditions ().end ();
76+ typename xr_vector<_world_property >::const_iterator I = conditions ().begin ();
77+ typename xr_vector<_world_property >::const_iterator E = conditions ().end ();
78+ typename xr_vector<_world_property >::const_iterator i = condition.conditions ().begin ();
79+ typename xr_vector<_world_property >::const_iterator e = condition.conditions ().end ();
8080 for (; (I != E) && (i != e);)
8181 if ((*I).condition () < (*i).condition ())
8282 ++I;
@@ -95,10 +95,10 @@ IC u8 CConditionStateAbstract::weight(const CConditionState& condition) const
9595TEMPLATE_SPECIALIZATION
9696IC bool CConditionStateAbstract::operator <(const CConditionState& condition) const
9797{
98- typename xr_vector<COperatorCondition >::const_iterator I = conditions ().begin ();
99- typename xr_vector<COperatorCondition >::const_iterator E = conditions ().end ();
100- typename xr_vector<COperatorCondition >::const_iterator i = condition.conditions ().begin ();
101- typename xr_vector<COperatorCondition >::const_iterator e = condition.conditions ().end ();
98+ typename xr_vector<_world_property >::const_iterator I = conditions ().begin ();
99+ typename xr_vector<_world_property >::const_iterator E = conditions ().end ();
100+ typename xr_vector<_world_property >::const_iterator i = condition.conditions ().begin ();
101+ typename xr_vector<_world_property >::const_iterator e = condition.conditions ().end ();
102102 for (; (I != E) && (i != e); ++I, ++i)
103103 if (*I < *i)
104104 return (true );
@@ -118,10 +118,10 @@ IC bool CConditionStateAbstract::operator==(const CConditionState& condition) co
118118{
119119 if (hash_value () != condition.hash_value ())
120120 return (false );
121- typename xr_vector<COperatorCondition >::const_iterator I = conditions ().begin ();
122- typename xr_vector<COperatorCondition >::const_iterator E = conditions ().end ();
123- typename xr_vector<COperatorCondition >::const_iterator i = condition.conditions ().begin ();
124- typename xr_vector<COperatorCondition >::const_iterator e = condition.conditions ().end ();
121+ typename xr_vector<_world_property >::const_iterator I = conditions ().begin ();
122+ typename xr_vector<_world_property >::const_iterator E = conditions ().end ();
123+ typename xr_vector<_world_property >::const_iterator i = condition.conditions ().begin ();
124+ typename xr_vector<_world_property >::const_iterator e = condition.conditions ().end ();
125125 for (; (I != E) && (i != e); ++I, ++i)
126126 if (!(*I == *i))
127127 return (false );
@@ -134,11 +134,11 @@ TEMPLATE_SPECIALIZATION
134134IC CConditionState<_world_property>& CConditionStateAbstract::operator -=(const CConditionState& condition)
135135{
136136 m_hash = 0 ;
137- xr_vector<COperatorCondition > temp;
138- typename xr_vector<COperatorCondition >::const_iterator I = conditions ().begin ();
139- typename xr_vector<COperatorCondition >::const_iterator E = conditions ().end ();
140- typename xr_vector<COperatorCondition >::const_iterator i = condition.conditions ().begin ();
141- typename xr_vector<COperatorCondition >::const_iterator e = condition.conditions ().end ();
137+ xr_vector<_world_property > temp;
138+ typename xr_vector<_world_property >::const_iterator I = conditions ().begin ();
139+ typename xr_vector<_world_property >::const_iterator E = conditions ().end ();
140+ typename xr_vector<_world_property >::const_iterator i = condition.conditions ().begin ();
141+ typename xr_vector<_world_property >::const_iterator e = condition.conditions ().end ();
142142 for (; (I != E) && (i != e);)
143143 if ((*I).condition () < (*i).condition ())
144144 ++I;
@@ -161,10 +161,10 @@ IC CConditionState<_world_property>& CConditionStateAbstract::operator-=(const C
161161TEMPLATE_SPECIALIZATION
162162IC bool CConditionStateAbstract::includes (const CConditionState& condition) const
163163{
164- typename xr_vector<COperatorCondition >::const_iterator I = conditions ().begin ();
165- typename xr_vector<COperatorCondition >::const_iterator E = conditions ().end ();
166- typename xr_vector<COperatorCondition >::const_iterator i = condition.conditions ().begin ();
167- typename xr_vector<COperatorCondition >::const_iterator e = condition.conditions ().end ();
164+ typename xr_vector<_world_property >::const_iterator I = conditions ().begin ();
165+ typename xr_vector<_world_property >::const_iterator E = conditions ().end ();
166+ typename xr_vector<_world_property >::const_iterator i = condition.conditions ().begin ();
167+ typename xr_vector<_world_property >::const_iterator e = condition.conditions ().end ();
168168 for (; (I != E) && (i != e);)
169169 if ((*I).condition () < (*i).condition ())
170170 ++I;
@@ -183,11 +183,11 @@ IC bool CConditionStateAbstract::includes(const CConditionState& condition) cons
183183TEMPLATE_SPECIALIZATION
184184IC u32 CConditionStateAbstract::hash_value () const { return (m_hash); }
185185TEMPLATE_SPECIALIZATION
186- IC const typename CConditionStateAbstract::COperatorCondition * CConditionStateAbstract::property (
187- const typename CConditionStateAbstract::COperatorCondition::_condition_type & condition) const
186+ IC const _world_property * CConditionStateAbstract::property (
187+ const typename _world_property::condition_type & condition) const
188188{
189- typename xr_vector<COperatorCondition >::const_iterator I = std::lower_bound (
190- conditions ().begin (), conditions ().end (), COperatorCondition (condition, COperatorCondition::_value_type (0 )));
189+ typename xr_vector<_world_property >::const_iterator I = std::lower_bound (
190+ conditions ().begin (), conditions ().end (), _world_property (condition, typename _world_property::value_type (0 )));
191191 if (I == m_conditions.end ())
192192 return (0 );
193193 else
0 commit comments