00001
00002 #ifndef PANEL_H
00003 #define PANEL_H
00004
00005 #include "car.h"
00006
00007
00008
00009 #define SPLIT_COUNT 2.0f
00010 #define TRACK_DIR_COUNT 640
00011 #define TRACK_DIR_FADE_COUNT 128
00012 #define WRONG_WAY_TOLERANCE 3.0f
00013 #define REV_LIT_NUM 7
00014 #define REV_LIT_MAX 1024
00015 #define MAX_MAP_DIR_NAME 16
00016
00017
00018
00019 extern void TriggerTrackDir(struct PlayerStruct *player, long flag, long n, VEC *vec);
00020 extern void TriggerSplit(struct PlayerStruct *player, long flag, long n, VEC *vec);
00021 extern void DrawControlPanel(void);
00022 extern void DrawPanelSprite(float x, float y, float width, float height, float tu, float tv, float twidth, float theight, long rgba);
00023
00024
00025
00026 enum {
00027 SPEED_MPH,
00028 SPEED_FPM,
00029 SPEED_KPH,
00030
00031 SPEED_NTYPES
00032 };
00033
00034 typedef struct {
00035 char Dir[MAX_MAP_DIR_NAME];
00036 REAL x, y, xscale, yscale;
00037 REAL tu, tv, tw, th;
00038 } MAP_INFO;
00039
00040 extern long SpeedUnits;
00041 extern char *SpeedUnitText[];
00042 extern REAL SpeedUnitScale[];
00043
00044
00045
00046 #endif