#include "GridNotifiers.h"
◆ VisibleChangesNotifier()
Acore::VisibleChangesNotifier::VisibleChangesNotifier |
( |
WorldObject & |
object | ) |
|
|
inlineexplicit |
WorldObject & i_object
Definition: GridNotifiers.h:65
◆ Visit() [1/4]
131{
133 if (iter->GetSource()->HasSharedVision())
134 for (SharedVisionList::const_iterator i = iter->GetSource()->GetSharedVisionList().begin(); i != iter->GetSource()->GetSharedVisionList().end(); ++i)
135 if ((*i)->m_seer == iter->GetSource())
136 (*i)->UpdateVisibilityOf(&
i_object);
137}
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]
115{
117 {
119 continue;
120
121 iter->GetSource()->UpdateVisibilityOf(&
i_object);
122
123 if (iter->GetSource()->HasSharedVision())
124 for (SharedVisionList::const_iterator i = iter->GetSource()->GetSharedVisionList().begin(); i != iter->GetSource()->GetSharedVisionList().end(); ++i)
125 if ((*i)->m_seer == iter->GetSource())
126 (*i)->UpdateVisibilityOf(&
i_object);
127 }
128}
References GridRefMgr< OBJECT >::begin(), GridRefMgr< OBJECT >::end(), and i_object.
◆ i_object