337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
|
static int game_command(int prev,int cmd,int number,int argc,sqlite3_stmt*args,void*aux) {
switch(cmd) {
case '\' ': // Play a move
return number;
case '^E': // Edit
return -2;
case '^L': // Select level
begin_level(number);
return 1;
case '^Q': // Quit
return -1;
case '^o': // List objects
list_objects_at(number-65);
return prev;
default:
return prev;
}
}
static void set_caption(void) {
const char*r;
|
<
<
<
>
>
>
|
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
|
static int game_command(int prev,int cmd,int number,int argc,sqlite3_stmt*args,void*aux) {
switch(cmd) {
case '\' ': // Play a move
return number;
case '^E': // Edit
return -2;
case '^Q': // Quit
return -1;
case '^o': // List objects
list_objects_at(number-65);
return prev;
case 'go': // Select level
begin_level(number);
return 1;
default:
return prev;
}
}
static void set_caption(void) {
const char*r;
|