Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 204 | chris | 1 | #ifndef COMMAND_SUB_H |
| 2 | #define COMMAND_SUB_H |
||
| 3 | |||
| 4 | #include "paddle.h" |
||
| 5 | |||
| 6 | /* on item structure */ |
||
| 7 | typedef struct { |
||
| 8 | double pos[2]; |
||
| 9 | int onpaddle; |
||
| 10 | } Item; |
||
| 11 | |||
| 12 | /* list of items */ |
||
| 13 | typedef struct { |
||
| 14 | int itemnum; |
||
| 15 | Item item[256]; |
||
| 16 | } ItemList; |
||
| 17 | |||
| 18 | /* item which is on the paddle */ |
||
| 19 | typedef struct { |
||
| 20 | int item; |
||
| 21 | double angle; |
||
| 22 | double x, y; |
||
| 23 | } PaddleItemInfo; |
||
| 24 | |||
| 25 | /* shaking gesture to remove a pattern */ |
||
| 26 | int check_shake ( double paddleTrans[3][4], int f ); |
||
| 27 | |||
| 28 | /* inclining gesture to put an object on the ground*/ |
||
| 29 | int check_incline ( double paddleTrans[3][4], double baseTrans[3][4], double *angle ); |
||
| 30 | |||
| 31 | /* picking gesture to take an object from the ground*/ |
||
| 32 | int check_pickup(double card_trans[3][4], double base_trans[3][4], ItemList* itlist, double* angle); |
||
| 33 | |||
| 34 | #endif |