april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
actuatorfactory.h
Go to the documentation of this file.
1 /* ========================================================================= */
2 /* ------------------------------------------------------------------------- *//*
12 
13 
14  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15  Please read COPYING and README files in root folder
16  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 */
18 /* ------------------------------------------------------------------------- */
19 /* ========================================================================= */
20 #ifndef __ACTUATORFACTORY_INC__
21 #define __ACTUATORFACTORY_INC__
22 //
23 //
24 //
25 //
26 /* INCLUDES ------------------------------------------------------------ */
27 
28 #include <april/april.h>
29 #include <april/logic/factory.h>
30 
31 /* INCLUDES ============================================================ */
32 //
33 //
34 //
35 //
36 /* DEFINITIONS --------------------------------------------------------- */
37 
38 namespace april {
39 
40 class Actor;
41 class Actuator;
42 
43 /* DEFINITIONS ========================================================= */
44 //
45 //
46 //
47 //
48 /* CLASS --------------------------------------------------------------- */
49 
53 class
55  ActuatorFactory : public Factory {
56  BBM_TRACK( ActuatorFactory );
57 
58  //
59  //
60  //
61  //
62  /* DEFINITIONS ----------------------------------------------------- */
63 
64  /* DEFINITIONS ===================================================== */
65  //
66  //
67  //
68  //
69  /* DATA ------------------------------------------------------------ */
70 
71 private:
72 
73 
74 
75  /* DATA ============================================================ */
76  //
77  //
78  //
79  //
80  /* FUNCTIONS ------------------------------------------------------- */
81 
82 public:
83 
84 
88  ActuatorFactory ( World * w );
89 
90 protected:
91 
95  virtual ~ActuatorFactory ( void );
96 
97 public:
98 
100  virtual FactoryType factoryType ( void )
101  { return FTyActuator; }
102 
104  virtual QString factoryName ( void )
105  { return "Actuator.Factory.Default"; }
106 
108 
117  virtual Actuator * create ( Actor * ag, ID id );
118 
119 protected:
120 
122  bool addMyself ( ID id );
123 
124 public:
125 
127  virtual bool save ( QSettings & s ) const;
128 
130  virtual bool load ( QSettings & s );
131 
132  /* FUNCTIONS ======================================================= */
133  //
134  //
135  //
136  //
137 
138 }; /* class ActuatorFactory */
139 
140 /* CLASS =============================================================== */
141 //
142 //
143 //
144 //
145 
146 } // namespace april
147 
148 #endif // __ACTUATORFACTORY_INC__
149 /* ------------------------------------------------------------------------- */
150 /* ========================================================================= */