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