SmartFoxServer 2X C++ API
IMMOItem.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of IMMOItem interface
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2013 First version
9 //
10 // ===================================================================
11 #ifndef __IMMOItem__
12 #define __IMMOItem__
13 
14 #include "../Util/Common.h"
15 #include "Variables/IMMOItemVariable.h"
16 #include "Data/Vec3D.h"
17 
18 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
19 
20 #if defined(_MSC_VER)
21 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
22 #endif
23 #include <string> // STL library: string object
24 #include <vector> // STL library: vector object
25 using namespace std; // STL library: declare the STL namespace
26 
27 using namespace Sfs2X::Entities::Variables;
28 using namespace Sfs2X::Entities::Data;
29 
30 namespace Sfs2X {
31 namespace Entities {
32 
42  class DLLImportExport IMMOItem
43  {
44  public:
52  virtual long int Id() = 0;
53 
54  virtual void Dispose() = 0;
55 
61  virtual boost::shared_ptr<vector<boost::shared_ptr<IMMOItemVariable> > > GetVariables() = 0;
62 
70  virtual boost::shared_ptr<IMMOItemVariable> GetVariable(string name) = 0;
71 
73  virtual void SetVariable(boost::shared_ptr<IMMOItemVariable> variable) = 0;
74 
76  virtual void SetVariables(boost::shared_ptr<vector<boost::shared_ptr<IMMOItemVariable> > > variables) = 0;
77 
87  virtual bool ContainsVariable(string name) = 0;
88 
100  virtual boost::shared_ptr<Vec3D> AOIEntryPoint() = 0;
101  virtual void AOIEntryPoint(boost::shared_ptr<Vec3D> value) = 0;
102  };
103 
104 } // namespace Entities
105 } // namespace Sfs2X
106 
107 #endif
108 
The IMMOItem interface defines all the methods and properties that an object representing a SmartFoxS...
Definition: IMMOItem.h:42
STL namespace.
Definition: BaseVariable.cpp:15
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17