1 |
/* |
/* |
2 |
$Id$ |
$Id$ |
3 |
|
|
4 |
Copyright (C) 1999/2000/2001/2003/2004 Kai Sterker |
Copyright (C) 1999/2000/2001/2003/2004 Kai Sterker |
5 |
Copyright (C) 2001 Alexandre Courbot |
Copyright (C) 2001 Alexandre Courbot |
6 |
Part of the Adonthell Project http://adonthell.linuxgames.com |
Part of the Adonthell Project http://adonthell.linuxgames.com |
7 |
|
|
8 |
Adonthell is free software; you can redistribute it and/or modify |
Adonthell is free software; you can redistribute it and/or modify |
9 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
139 |
} |
} |
140 |
|
|
141 |
// check for a certain attribute |
// check for a certain attribute |
142 |
bool script::has_attribute (const std::string & name) const |
bool script::has_attribute (const string & name) const |
143 |
{ |
{ |
144 |
if (Instance) |
if (Instance) |
145 |
return PyObject_HasAttrString (Instance, (char *) name.c_str ()); |
return PyObject_HasAttrString (Instance, (char *) name.c_str ()); |