#include "GridNotifiers.h"
◆ VisibleChangesNotifier()
Acore::VisibleChangesNotifier::VisibleChangesNotifier |
( |
WorldObject & |
object | ) |
|
|
inlineexplicit |
WorldObject & i_object
Definition: GridNotifiers.h:65
◆ Visit() [1/4]
130{
132 if (iter->GetSource()->HasSharedVision())
133 for (SharedVisionList::const_iterator i = iter->GetSource()->GetSharedVisionList().begin(); i != iter->GetSource()->GetSharedVisionList().end(); ++i)
134 if ((*i)->m_seer == iter->GetSource())
135 (*i)->UpdateVisibilityOf(&
i_object);
136}
Definition: LinkedList.h:139
iterator begin()
Definition: GridRefMgr.h:35
iterator end()
Definition: GridRefMgr.h:36
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), and i_object.
◆ Visit() [2/4]
◆ Visit() [3/4]
template<class T >
void Acore::VisibleChangesNotifier::Visit |
( |
GridRefMgr< T > & |
| ) |
|
|
inline |
◆ Visit() [4/4]
114{
116 {
118 continue;
119
120 iter->GetSource()->UpdateVisibilityOf(&
i_object);
121
122 if (iter->GetSource()->HasSharedVision())
123 for (SharedVisionList::const_iterator i = iter->GetSource()->GetSharedVisionList().begin(); i != iter->GetSource()->GetSharedVisionList().end(); ++i)
124 if ((*i)->m_seer == iter->GetSource())
125 (*i)->UpdateVisibilityOf(&
i_object);
126 }
127}
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), and i_object.
◆ i_object