codemp/icarus/interpreter.h File Reference

Go to the source code of this file.

Defines

#define ICARUS_VERSION   1.33
#define MAX_STRING_SIZE   256
#define MAX_VAR_NAME   64

Typedefs

typedef float vector_t [3]

Enumerations

enum  {
  TK_BLOCK_START = TK_USERDEF, TK_BLOCK_END, TK_VECTOR_START, TK_VECTOR_END,
  TK_OPEN_PARENTHESIS, TK_CLOSED_PARENTHESIS, TK_VECTOR, TK_GREATER_THAN,
  TK_LESS_THAN, TK_EQUALS, TK_NOT, NUM_USER_TOKENS
}
enum  {
  ID_AFFECT = NUM_USER_TOKENS, ID_SOUND, ID_MOVE, ID_ROTATE,
  ID_WAIT, ID_BLOCK_START, ID_BLOCK_END, ID_SET,
  ID_LOOP, ID_LOOPEND, ID_PRINT, ID_USE,
  ID_FLUSH, ID_RUN, ID_KILL, ID_REMOVE,
  ID_CAMERA, ID_GET, ID_RANDOM, ID_IF,
  ID_ELSE, ID_REM, ID_TASK, ID_DO,
  ID_DECLARE, ID_FREE, ID_DOWAIT, ID_SIGNAL,
  ID_WAITSIGNAL, ID_PLAY, ID_TAG, ID_EOF,
  NUM_IDS
}
enum  {
  TYPE_WAIT_COMPLETE = NUM_IDS, TYPE_WAIT_TRIGGERED, TYPE_ANGLES, TYPE_ORIGIN,
  TYPE_INSERT, TYPE_FLUSH, TYPE_PAN, TYPE_ZOOM,
  TYPE_MOVE, TYPE_FADE, TYPE_PATH, TYPE_ENABLE,
  TYPE_DISABLE, TYPE_SHAKE, TYPE_ROLL, TYPE_TRACK,
  TYPE_DISTANCE, TYPE_FOLLOW, TYPE_VARIABLE, TYPE_EOF,
  NUM_TYPES
}
enum  { MSG_COMPLETED, MSG_EOF, NUM_MESSAGES }


Define Documentation

#define ICARUS_VERSION   1.33
 

Definition at line 6 of file interpreter.h.

#define MAX_STRING_SIZE   256
 

Definition at line 8 of file interpreter.h.

#define MAX_VAR_NAME   64
 

Definition at line 9 of file interpreter.h.


Typedef Documentation

typedef float vector_t[3]
 

Definition at line 11 of file interpreter.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
TK_BLOCK_START 
TK_BLOCK_END 
TK_VECTOR_START 
TK_VECTOR_END 
TK_OPEN_PARENTHESIS 
TK_CLOSED_PARENTHESIS 
TK_VECTOR 
TK_GREATER_THAN 
TK_LESS_THAN 
TK_EQUALS 
TK_NOT 
NUM_USER_TOKENS 

Definition at line 15 of file interpreter.h.

00016 {
00017         TK_BLOCK_START = TK_USERDEF,
00018         TK_BLOCK_END,
00019         TK_VECTOR_START,
00020         TK_VECTOR_END,
00021         TK_OPEN_PARENTHESIS,
00022         TK_CLOSED_PARENTHESIS,
00023         TK_VECTOR,
00024         TK_GREATER_THAN,
00025         TK_LESS_THAN,
00026         TK_EQUALS,
00027         TK_NOT,
00028 
00029         NUM_USER_TOKENS
00030 };

anonymous enum
 

Enumeration values:
ID_AFFECT 
ID_SOUND 
ID_MOVE 
ID_ROTATE 
ID_WAIT 
ID_BLOCK_START 
ID_BLOCK_END 
ID_SET 
ID_LOOP 
ID_LOOPEND 
ID_PRINT 
ID_USE 
ID_FLUSH 
ID_RUN 
ID_KILL 
ID_REMOVE 
ID_CAMERA 
ID_GET 
ID_RANDOM 
ID_IF 
ID_ELSE 
ID_REM 
ID_TASK 
ID_DO 
ID_DECLARE 
ID_FREE 
ID_DOWAIT 
ID_SIGNAL 
ID_WAITSIGNAL 
ID_PLAY 
ID_TAG 
ID_EOF 
NUM_IDS 

Definition at line 33 of file interpreter.h.

00034 {
00035         ID_AFFECT = NUM_USER_TOKENS,
00036         ID_SOUND,
00037         ID_MOVE,
00038         ID_ROTATE,
00039         ID_WAIT,
00040         ID_BLOCK_START,
00041         ID_BLOCK_END,
00042         ID_SET,
00043         ID_LOOP,
00044         ID_LOOPEND,
00045         ID_PRINT,
00046         ID_USE,
00047         ID_FLUSH,
00048         ID_RUN,
00049         ID_KILL,
00050         ID_REMOVE,
00051         ID_CAMERA,
00052         ID_GET,
00053         ID_RANDOM,
00054         ID_IF,
00055         ID_ELSE,
00056         ID_REM,
00057         ID_TASK,
00058         ID_DO,
00059         ID_DECLARE,
00060         ID_FREE,
00061         ID_DOWAIT,
00062         ID_SIGNAL,
00063         ID_WAITSIGNAL,
00064         ID_PLAY,
00065 
00066         ID_TAG,
00067         ID_EOF,
00068         NUM_IDS
00069 };

anonymous enum
 

Enumeration values:
TYPE_WAIT_COMPLETE 
TYPE_WAIT_TRIGGERED 
TYPE_ANGLES 
TYPE_ORIGIN 
TYPE_INSERT 
TYPE_FLUSH 
TYPE_PAN 
TYPE_ZOOM 
TYPE_MOVE 
TYPE_FADE 
TYPE_PATH 
TYPE_ENABLE 
TYPE_DISABLE 
TYPE_SHAKE 
TYPE_ROLL 
TYPE_TRACK 
TYPE_DISTANCE 
TYPE_FOLLOW 
TYPE_VARIABLE 
TYPE_EOF 
NUM_TYPES 

Definition at line 72 of file interpreter.h.

00073 {
00074         //Wait types
00075         TYPE_WAIT_COMPLETE       = NUM_IDS,
00076         TYPE_WAIT_TRIGGERED,
00077 
00078         //Set types
00079         TYPE_ANGLES,
00080         TYPE_ORIGIN,
00081 
00082         //Affect types
00083         TYPE_INSERT,    
00084         TYPE_FLUSH,     
00085         
00086         //Camera types
00087         TYPE_PAN,
00088         TYPE_ZOOM,
00089         TYPE_MOVE,
00090         TYPE_FADE,
00091         TYPE_PATH,
00092         TYPE_ENABLE,
00093         TYPE_DISABLE,
00094         TYPE_SHAKE,
00095         TYPE_ROLL,
00096         TYPE_TRACK,
00097         TYPE_DISTANCE,
00098         TYPE_FOLLOW,
00099                 
00100         //Variable type
00101         TYPE_VARIABLE,
00102 
00103         TYPE_EOF,
00104         NUM_TYPES
00105 };

anonymous enum
 

Enumeration values:
MSG_COMPLETED 
MSG_EOF 
NUM_MESSAGES 

Definition at line 107 of file interpreter.h.

00108 {
00109         MSG_COMPLETED,
00110         MSG_EOF,
00111         NUM_MESSAGES,
00112 };