Cleanup Python integration module
[tennix.git] / src / tennixpy.h
blob9cc6751d70adcb3d98cfc989dade60b46cdce047
3 /**
5 * Tennix! SDL Port
6 * Copyright (C) 2003, 2007, 2008, 2009 Thomas Perl <thp@thpinfo.com>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 * MA 02110-1301, USA.
23 **/
25 #ifndef __TENNIXPY_H
26 #define __TENNIXPY_H
28 #include "config.h"
30 #ifdef HAVE_PYTHON
32 #include "archive.h"
33 #include "input.h"
35 void tennixpy_create_bot(InputDevice *device, GameState *s, int player_id);
36 void tennixpy_destroy_bot(InputDevice *device);
38 void tennixpy_unregister_bot(InputDevice *device);
40 float tennixpy_bot_get_axis(InputDevice *device, int axis);
41 char tennixpy_bot_get_key(InputDevice *device, int key);
43 void tennixpy_init(TennixArchive& tnxar);
44 void tennixpy_uninit();
46 #endif /* HAVE_PYTHON */
48 #endif /* __TENNIXPY_H */