OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellvisitors.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWWORLD_CELLVISITORS_H
2 #define GAME_MWWORLD_CELLVISITORS_H
3 
4 #include <vector>
5 #include <string>
6 
7 #include "ptr.hpp"
8 
9 
10 namespace MWWorld
11 {
13  {
14  std::vector<MWWorld::Ptr> mObjects;
15 
17  {
18  if (ptr.getRefData().getBaseNode())
19  {
20  ptr.getRefData().setBaseNode(NULL);
21  mObjects.push_back (ptr);
22  }
23 
24  return true;
25  }
26  };
27 }
28 
29 #endif
std::vector< MWWorld::Ptr > mObjects
Definition: cellvisitors.hpp:14
SceneUtil::PositionAttitudeTransform * getBaseNode()
Return base node (can be a null pointer).
Definition: refdata.cpp:139
void setBaseNode(SceneUtil::PositionAttitudeTransform *base)
Set base node (can be a null pointer).
Definition: refdata.cpp:134
Definition: cellvisitors.hpp:12
bool operator()(MWWorld::Ptr ptr)
Definition: cellvisitors.hpp:16
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
RefData & getRefData() const
Definition: ptr.cpp:31