| 196 | } |
| 197 | |
| 198 | static PyObject* |
| 199 | Player_kill(Player* self, PyObject* args, PyObject* keywords) { |
| 200 | PyObject* spawn = Py_False; |
| 201 | |
| 202 | static char* kwlist[] = {"spawnOnBase", NULL}; |
| 203 | if (!PyArg_ParseTupleAndKeywords(args, keywords, "|o", kwlist, &spawn)) { |
| 204 | fprintf(stderr, "couldn't parse args\n"); |
| 205 | // FIXME - throw error |
| 206 | return NULL; |
| 207 | } |
| 208 | |
| 209 | bool result = bz_killPlayer(self->record->playerID, (spawn == Py_True)); |
| 210 | return (result ? Py_True : Py_False); |
| 211 | } |
| 212 | |
| 213 | static PyObject* |
| 214 | Player_removeFlag(Player* self, PyObject* args) { |
nothing calls this directly
no test coverage detected