6 * Copyright (C) 2003, 2007, 2008, 2009 Thomas Perl <thp@thpinfo.com>
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,
30 extern PyThreadState
* _py_save
;
32 PyObject
* tennixpy_register_bot(PyObject
* self
, PyObject
* bot_class
);
33 void tennixpy_unregister_bot(PyObject
* bot
);
34 void tennixpy_get_bot_name(PyObject
* bot_class
, char* dest
, int maxlen
);
36 PyObject
* tennixpy_create_bot(PyObject
* bot_class
, GameState
* s
, int player_id
);
37 void tennixpy_destroy_bot(PyObject
* bot
);
39 float tennixpy_bot_get_axis(PyObject
* bot
, int axis
);
40 char tennixpy_bot_get_key(PyObject
* bot
, int key
);
42 PyObject
* tennixpy_get_ball_pos(PyObject
* self
, PyObject
* gamestate
);
43 PyObject
* tennixpy_get_power(PyObject
* self
, PyObject
* args
);
44 PyObject
* tennixpy_get_position(PyObject
* self
, PyObject
* args
);
46 PyObject
* tennixpy_create_module(void);
49 void tennixpy_uninit();