icfp11/src/control_parser.h

26 lines
458 B
C
Raw Normal View History

2008-07-12 00:17:29 +00:00
#ifndef _CONTROL_PARSER_H
#define _CONTROL_PARSER_H
struct control_parser_ctx;
typedef struct control_parser_ctx control_parser_ctx;
#include "control.h"
struct control_parser_ctx {
int cs;
GString *buffer;
2008-07-12 01:29:24 +00:00
gssize mark, pos;
2008-07-12 00:17:29 +00:00
2008-07-12 01:29:24 +00:00
telemetry *tm;
2008-07-12 00:17:29 +00:00
GString *tmp;
2008-07-12 00:39:26 +00:00
timestamp ts;
2008-07-12 01:29:24 +00:00
double x, y, r, dir, speed;
2008-07-12 00:17:29 +00:00
};
void control_parser_new(trial *t);
void control_parser_reset(trial *t);
void control_parser_free(trial *t);
run_t control_parse(trial *t);
#endif