00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef SWIG_annchienta_WRAP_H_
00012 #define SWIG_annchienta_WRAP_H_
00013
00014 #include <map>
00015 #include <string>
00016
00017
00018 class SwigDirector_Cacheable : public Annchienta::Cacheable, public Swig::Director {
00019
00020 public:
00021 SwigDirector_Cacheable(PyObject *self, char const *fileName);
00022 virtual ~SwigDirector_Cacheable();
00023 virtual Annchienta::CacheableType getCacheableType() const;
00024
00025
00026
00027 public:
00028 bool swig_get_inner(const char* name) const {
00029 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00030 return (iv != inner.end() ? iv->second : false);
00031 }
00032
00033 void swig_set_inner(const char* name, bool val) const
00034 { inner[name] = val;}
00035
00036 private:
00037 mutable std::map<std::string, bool> inner;
00038
00039
00040 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00041
00042 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00043 PyObject *method = vtable[method_index];
00044 if (!method) {
00045 swig::PyObject_var name = PyString_FromString(method_name);
00046 method = PyObject_GetAttr(swig_get_self(), name);
00047 if (method == NULL) {
00048 std::string msg = "Method in class Cacheable doesn't exist, undefined ";
00049 msg += method_name;
00050 Swig::DirectorMethodException::raise(msg.c_str());
00051 }
00052 vtable[method_index] = method;
00053 };
00054 return method;
00055 }
00056 private:
00057 mutable swig::PyObject_var vtable[1];
00058 #endif
00059
00060 };
00061
00062
00063 class SwigDirector_Surface : public Annchienta::Surface, public Swig::Director {
00064
00065 public:
00066 SwigDirector_Surface(PyObject *self, int width, int height, int pixelSize = 3);
00067 SwigDirector_Surface(PyObject *self, char const *filename);
00068 virtual ~SwigDirector_Surface();
00069 virtual Annchienta::CacheableType getCacheableType() const;
00070
00071
00072
00073 public:
00074 bool swig_get_inner(const char* name) const {
00075 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00076 return (iv != inner.end() ? iv->second : false);
00077 }
00078
00079 void swig_set_inner(const char* name, bool val) const
00080 { inner[name] = val;}
00081
00082 private:
00083 mutable std::map<std::string, bool> inner;
00084
00085
00086 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00087
00088 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00089 PyObject *method = vtable[method_index];
00090 if (!method) {
00091 swig::PyObject_var name = PyString_FromString(method_name);
00092 method = PyObject_GetAttr(swig_get_self(), name);
00093 if (method == NULL) {
00094 std::string msg = "Method in class Surface doesn't exist, undefined ";
00095 msg += method_name;
00096 Swig::DirectorMethodException::raise(msg.c_str());
00097 }
00098 vtable[method_index] = method;
00099 };
00100 return method;
00101 }
00102 private:
00103 mutable swig::PyObject_var vtable[1];
00104 #endif
00105
00106 };
00107
00108
00109 class SwigDirector_Sound : public Annchienta::Sound, public Swig::Director {
00110
00111 public:
00112 SwigDirector_Sound(PyObject *self, char const *filename);
00113 virtual ~SwigDirector_Sound();
00114 virtual Annchienta::CacheableType getCacheableType() const;
00115
00116
00117
00118 public:
00119 bool swig_get_inner(const char* name) const {
00120 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00121 return (iv != inner.end() ? iv->second : false);
00122 }
00123
00124 void swig_set_inner(const char* name, bool val) const
00125 { inner[name] = val;}
00126
00127 private:
00128 mutable std::map<std::string, bool> inner;
00129
00130
00131 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00132
00133 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00134 PyObject *method = vtable[method_index];
00135 if (!method) {
00136 swig::PyObject_var name = PyString_FromString(method_name);
00137 method = PyObject_GetAttr(swig_get_self(), name);
00138 if (method == NULL) {
00139 std::string msg = "Method in class Sound doesn't exist, undefined ";
00140 msg += method_name;
00141 Swig::DirectorMethodException::raise(msg.c_str());
00142 }
00143 vtable[method_index] = method;
00144 };
00145 return method;
00146 }
00147 private:
00148 mutable swig::PyObject_var vtable[1];
00149 #endif
00150
00151 };
00152
00153
00154 class SwigDirector_Entity : public Annchienta::Entity, public Swig::Director {
00155
00156 public:
00157 SwigDirector_Entity(PyObject *self, char const *name = "none");
00158 virtual ~SwigDirector_Entity();
00159 virtual Annchienta::EntityType getEntityType() const;
00160 virtual void draw();
00161 virtual void update();
00162 virtual int getDepth();
00163 virtual Annchienta::Mask *getMask() const;
00164 virtual Annchienta::Point getMaskPosition() const;
00165 virtual bool collidesWith(Annchienta::Entity *other) const;
00166
00167
00168
00169 public:
00170 bool swig_get_inner(const char* name) const {
00171 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00172 return (iv != inner.end() ? iv->second : false);
00173 }
00174
00175 void swig_set_inner(const char* name, bool val) const
00176 { inner[name] = val;}
00177
00178 private:
00179 mutable std::map<std::string, bool> inner;
00180
00181
00182 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00183
00184 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00185 PyObject *method = vtable[method_index];
00186 if (!method) {
00187 swig::PyObject_var name = PyString_FromString(method_name);
00188 method = PyObject_GetAttr(swig_get_self(), name);
00189 if (method == NULL) {
00190 std::string msg = "Method in class Entity doesn't exist, undefined ";
00191 msg += method_name;
00192 Swig::DirectorMethodException::raise(msg.c_str());
00193 }
00194 vtable[method_index] = method;
00195 };
00196 return method;
00197 }
00198 private:
00199 mutable swig::PyObject_var vtable[7];
00200 #endif
00201
00202 };
00203
00204
00205 class SwigDirector_Tile : public Annchienta::Tile, public Swig::Director {
00206
00207 public:
00208 SwigDirector_Tile(PyObject *self, Annchienta::TileSet *arg0, Annchienta::Point arg1, int arg2, Annchienta::Point arg3, int arg4, Annchienta::Point arg5, int arg6, Annchienta::Point arg7, int arg8, int ssOffset = 0, int ss = 0);
00209 virtual ~SwigDirector_Tile();
00210 virtual Annchienta::EntityType getEntityType() const;
00211 virtual void draw();
00212 virtual void update();
00213 virtual int getDepth();
00214 virtual Annchienta::Mask *getMask() const;
00215 virtual Annchienta::Point getMaskPosition() const;
00216 virtual bool collidesWith(Annchienta::Entity *other) const;
00217
00218
00219
00220 public:
00221 bool swig_get_inner(const char* name) const {
00222 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00223 return (iv != inner.end() ? iv->second : false);
00224 }
00225
00226 void swig_set_inner(const char* name, bool val) const
00227 { inner[name] = val;}
00228
00229 private:
00230 mutable std::map<std::string, bool> inner;
00231
00232
00233 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00234
00235 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00236 PyObject *method = vtable[method_index];
00237 if (!method) {
00238 swig::PyObject_var name = PyString_FromString(method_name);
00239 method = PyObject_GetAttr(swig_get_self(), name);
00240 if (method == NULL) {
00241 std::string msg = "Method in class Tile doesn't exist, undefined ";
00242 msg += method_name;
00243 Swig::DirectorMethodException::raise(msg.c_str());
00244 }
00245 vtable[method_index] = method;
00246 };
00247 return method;
00248 }
00249 private:
00250 mutable swig::PyObject_var vtable[7];
00251 #endif
00252
00253 };
00254
00255
00256 class SwigDirector_Mask : public Annchienta::Mask, public Swig::Director {
00257
00258 public:
00259 SwigDirector_Mask(PyObject *self, char const *filename);
00260 SwigDirector_Mask(PyObject *self, int w, int h);
00261 virtual ~SwigDirector_Mask();
00262 virtual Annchienta::CacheableType getCacheableType() const;
00263
00264
00265
00266 public:
00267 bool swig_get_inner(const char* name) const {
00268 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00269 return (iv != inner.end() ? iv->second : false);
00270 }
00271
00272 void swig_set_inner(const char* name, bool val) const
00273 { inner[name] = val;}
00274
00275 private:
00276 mutable std::map<std::string, bool> inner;
00277
00278
00279 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00280
00281 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00282 PyObject *method = vtable[method_index];
00283 if (!method) {
00284 swig::PyObject_var name = PyString_FromString(method_name);
00285 method = PyObject_GetAttr(swig_get_self(), name);
00286 if (method == NULL) {
00287 std::string msg = "Method in class Mask doesn't exist, undefined ";
00288 msg += method_name;
00289 Swig::DirectorMethodException::raise(msg.c_str());
00290 }
00291 vtable[method_index] = method;
00292 };
00293 return method;
00294 }
00295 private:
00296 mutable swig::PyObject_var vtable[1];
00297 #endif
00298
00299 };
00300
00301
00302 class SwigDirector_StaticObject : public Annchienta::StaticObject, public Swig::Director {
00303
00304 public:
00305 SwigDirector_StaticObject(PyObject *self, char const *name, char const *configfile);
00306 SwigDirector_StaticObject(PyObject *self, char const *name, Annchienta::Surface *surf, Annchienta::Mask *mask);
00307 virtual ~SwigDirector_StaticObject();
00308 virtual Annchienta::EntityType getEntityType() const;
00309 virtual void draw();
00310 virtual void update();
00311 virtual int getDepth();
00312 virtual Annchienta::Mask *getMask() const;
00313 virtual Annchienta::Point getMaskPosition() const;
00314 virtual bool collidesWith(Annchienta::Entity *other) const;
00315 virtual void setPosition(Annchienta::Point position);
00316 virtual Annchienta::Point getPosition() const;
00317 virtual void setSprite(char const *filename);
00318 virtual void setPassable(bool passable);
00319 virtual bool isPassable() const;
00320 virtual void setOnInteractScript(char const *script);
00321 virtual void setOnInteractCode(char const *code);
00322 virtual bool canInteract() const;
00323 virtual void onInteract();
00324 virtual void freeze(bool arg0);
00325 virtual bool stepTo(Annchienta::Point arg0);
00326 virtual void setStandAnimation(bool b = false);
00327 virtual void lookAt(Annchienta::StaticObject *other);
00328
00329
00330
00331 public:
00332 bool swig_get_inner(const char* name) const {
00333 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00334 return (iv != inner.end() ? iv->second : false);
00335 }
00336
00337 void swig_set_inner(const char* name, bool val) const
00338 { inner[name] = val;}
00339
00340 private:
00341 mutable std::map<std::string, bool> inner;
00342
00343
00344 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00345
00346 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00347 PyObject *method = vtable[method_index];
00348 if (!method) {
00349 swig::PyObject_var name = PyString_FromString(method_name);
00350 method = PyObject_GetAttr(swig_get_self(), name);
00351 if (method == NULL) {
00352 std::string msg = "Method in class StaticObject doesn't exist, undefined ";
00353 msg += method_name;
00354 Swig::DirectorMethodException::raise(msg.c_str());
00355 }
00356 vtable[method_index] = method;
00357 };
00358 return method;
00359 }
00360 private:
00361 mutable swig::PyObject_var vtable[21];
00362 #endif
00363
00364 };
00365
00366
00367 class SwigDirector_Person : public Annchienta::Person, public Swig::Director {
00368
00369 public:
00370 SwigDirector_Person(PyObject *self, char const *name, char const *configFile);
00371 virtual ~SwigDirector_Person();
00372 virtual Annchienta::EntityType getEntityType() const;
00373 virtual void draw();
00374 virtual void update();
00375 virtual int getDepth();
00376 virtual Annchienta::Mask *getMask() const;
00377 virtual Annchienta::Point getMaskPosition() const;
00378 virtual bool collidesWith(Annchienta::Entity *other) const;
00379 virtual void setPosition(Annchienta::Point position);
00380 virtual Annchienta::Point getPosition() const;
00381 virtual void setSprite(char const *filename);
00382 virtual void setPassable(bool passable);
00383 virtual bool isPassable() const;
00384 virtual void setOnInteractScript(char const *script);
00385 virtual void setOnInteractCode(char const *code);
00386 virtual bool canInteract() const;
00387 virtual void onInteract();
00388 virtual void freeze(bool value);
00389 virtual void setStandAnimation(bool forceFromHeading = false);
00390 virtual void lookAt(Annchienta::StaticObject *object);
00391 virtual void setSpeed(float speed);
00392 virtual float getSpeed() const;
00393 virtual bool move(int x, int y, bool force = false);
00394 virtual bool stepTo(Annchienta::Point point, bool force = true);
00395 virtual bool isFrozen() const;
00396 virtual void setControl(Annchienta::PersonControl *personControl);
00397 virtual void setInputControl();
00398 virtual void setSampleControl();
00399 virtual void setNullControl();
00400 virtual void collisionWithLayerAreas();
00401
00402
00403
00404 public:
00405 bool swig_get_inner(const char* name) const {
00406 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00407 return (iv != inner.end() ? iv->second : false);
00408 }
00409
00410 void swig_set_inner(const char* name, bool val) const
00411 { inner[name] = val;}
00412
00413 private:
00414 mutable std::map<std::string, bool> inner;
00415
00416
00417 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00418
00419 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00420 PyObject *method = vtable[method_index];
00421 if (!method) {
00422 swig::PyObject_var name = PyString_FromString(method_name);
00423 method = PyObject_GetAttr(swig_get_self(), name);
00424 if (method == NULL) {
00425 std::string msg = "Method in class Person doesn't exist, undefined ";
00426 msg += method_name;
00427 Swig::DirectorMethodException::raise(msg.c_str());
00428 }
00429 vtable[method_index] = method;
00430 };
00431 return method;
00432 }
00433 private:
00434 mutable swig::PyObject_var vtable[32];
00435 #endif
00436
00437 };
00438
00439
00440 class SwigDirector_PersonControl : public Annchienta::PersonControl, public Swig::Director {
00441
00442 public:
00443 SwigDirector_PersonControl(PyObject *self, Annchienta::Person *person);
00444 virtual ~SwigDirector_PersonControl();
00445 virtual void affect();
00446
00447
00448
00449 public:
00450 bool swig_get_inner(const char* name) const {
00451 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00452 return (iv != inner.end() ? iv->second : false);
00453 }
00454
00455 void swig_set_inner(const char* name, bool val) const
00456 { inner[name] = val;}
00457
00458 private:
00459 mutable std::map<std::string, bool> inner;
00460
00461
00462 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00463
00464 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00465 PyObject *method = vtable[method_index];
00466 if (!method) {
00467 swig::PyObject_var name = PyString_FromString(method_name);
00468 method = PyObject_GetAttr(swig_get_self(), name);
00469 if (method == NULL) {
00470 std::string msg = "Method in class PersonControl doesn't exist, undefined ";
00471 msg += method_name;
00472 Swig::DirectorMethodException::raise(msg.c_str());
00473 }
00474 vtable[method_index] = method;
00475 };
00476 return method;
00477 }
00478 private:
00479 mutable swig::PyObject_var vtable[1];
00480 #endif
00481
00482 };
00483
00484
00485 class SwigDirector_SamplePersonControl : public Annchienta::SamplePersonControl, public Swig::Director {
00486
00487 public:
00488 SwigDirector_SamplePersonControl(PyObject *self, Annchienta::Person *person);
00489 virtual ~SwigDirector_SamplePersonControl();
00490 virtual void affect();
00491
00492
00493
00494 public:
00495 bool swig_get_inner(const char* name) const {
00496 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00497 return (iv != inner.end() ? iv->second : false);
00498 }
00499
00500 void swig_set_inner(const char* name, bool val) const
00501 { inner[name] = val;}
00502
00503 private:
00504 mutable std::map<std::string, bool> inner;
00505
00506
00507 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00508
00509 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00510 PyObject *method = vtable[method_index];
00511 if (!method) {
00512 swig::PyObject_var name = PyString_FromString(method_name);
00513 method = PyObject_GetAttr(swig_get_self(), name);
00514 if (method == NULL) {
00515 std::string msg = "Method in class SamplePersonControl doesn't exist, undefined ";
00516 msg += method_name;
00517 Swig::DirectorMethodException::raise(msg.c_str());
00518 }
00519 vtable[method_index] = method;
00520 };
00521 return method;
00522 }
00523 private:
00524 mutable swig::PyObject_var vtable[1];
00525 #endif
00526
00527 };
00528
00529
00530 class SwigDirector_InputPersonControl : public Annchienta::InputPersonControl, public Swig::Director {
00531
00532 public:
00533 SwigDirector_InputPersonControl(PyObject *self, Annchienta::Person *person);
00534 virtual ~SwigDirector_InputPersonControl();
00535 virtual void affect();
00536
00537
00538
00539 public:
00540 bool swig_get_inner(const char* name) const {
00541 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00542 return (iv != inner.end() ? iv->second : false);
00543 }
00544
00545 void swig_set_inner(const char* name, bool val) const
00546 { inner[name] = val;}
00547
00548 private:
00549 mutable std::map<std::string, bool> inner;
00550
00551
00552 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00553
00554 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00555 PyObject *method = vtable[method_index];
00556 if (!method) {
00557 swig::PyObject_var name = PyString_FromString(method_name);
00558 method = PyObject_GetAttr(swig_get_self(), name);
00559 if (method == NULL) {
00560 std::string msg = "Method in class InputPersonControl doesn't exist, undefined ";
00561 msg += method_name;
00562 Swig::DirectorMethodException::raise(msg.c_str());
00563 }
00564 vtable[method_index] = method;
00565 };
00566 return method;
00567 }
00568 private:
00569 mutable swig::PyObject_var vtable[1];
00570 #endif
00571
00572 };
00573
00574
00575 class SwigDirector_FollowPathPersonControl : public Annchienta::FollowPathPersonControl, public Swig::Director {
00576
00577 public:
00578 SwigDirector_FollowPathPersonControl(PyObject *self, Annchienta::Person *person);
00579 virtual ~SwigDirector_FollowPathPersonControl();
00580 virtual void affect();
00581
00582
00583
00584 public:
00585 bool swig_get_inner(const char* name) const {
00586 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00587 return (iv != inner.end() ? iv->second : false);
00588 }
00589
00590 void swig_set_inner(const char* name, bool val) const
00591 { inner[name] = val;}
00592
00593 private:
00594 mutable std::map<std::string, bool> inner;
00595
00596
00597 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00598
00599 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00600 PyObject *method = vtable[method_index];
00601 if (!method) {
00602 swig::PyObject_var name = PyString_FromString(method_name);
00603 method = PyObject_GetAttr(swig_get_self(), name);
00604 if (method == NULL) {
00605 std::string msg = "Method in class FollowPathPersonControl doesn't exist, undefined ";
00606 msg += method_name;
00607 Swig::DirectorMethodException::raise(msg.c_str());
00608 }
00609 vtable[method_index] = method;
00610 };
00611 return method;
00612 }
00613 private:
00614 mutable swig::PyObject_var vtable[1];
00615 #endif
00616
00617 };
00618
00619
00620 #endif