]> icculus.org git repositories - theoddone33/hheretic.git/blob - include/am_data.h
Some 64-bit fixes
[theoddone33/hheretic.git] / include / am_data.h
1 // AM_data.h : The vector graphics for the automap
2
3 #ifndef __AMDATA_H__
4 #define __AMDATA_H__
5
6 //#pragma once  // no pragmas in my code! - DDOI
7
8 // a line drawing of the player pointing right, starting from the middle.
9
10 #define R ((8*PLAYERRADIUS)/7)
11
12 mline_t player_arrow[] = {
13   { { -R+R/4, 0 }, { 0, 0} }, // center line.
14   { { -R+R/4, R/8 }, { R, 0} }, // blade
15   { { -R+R/4, -R/8 }, { R, 0 } },
16   { { -R+R/4, -R/4 }, { -R+R/4, R/4 } }, // crosspiece
17   { { -R+R/8, -R/4 }, { -R+R/8, R/4 } },
18   { { -R+R/8, -R/4 }, { -R+R/4, -R/4} }, //crosspiece connectors
19   { { -R+R/8, R/4 }, { -R+R/4, R/4} },
20   { { -R-R/4, R/8 }, { -R-R/4, -R/8 } }, //pommel
21   { { -R-R/4, R/8 }, { -R+R/8, R/8 } },
22   { { -R-R/4, -R/8}, { -R+R/8, -R/8 } }
23   };
24
25 mline_t keysquare[] = {
26         { { 0, 0 }, { R/4, -R/2 } },
27         { { R/4, -R/2 }, { R/2, -R/2 } },
28         { { R/2, -R/2 }, { R/2, R/2 } },
29         { { R/2, R/2 }, { R/4, R/2 } },
30         { { R/4, R/2 }, { 0, 0 } }, // handle part type thing
31         { { 0, 0 }, { -R, 0 } }, // stem
32         { { -R, 0 }, { -R, -R/2 } }, // end lockpick part
33         { { -3*R/4, 0 }, { -3*R/4, -R/4 } }
34         };
35
36 /*mline_t player_arrow[] = {
37   { { -R+R/8, 0 }, { R, 0 } }, // -----
38   { { R, 0 }, { R-R/2, R/4 } },  // ----->
39   { { R, 0 }, { R-R/2, -R/4 } },
40   { { -R+R/8, 0 }, { -R-R/8, R/4 } }, // >---->
41   { { -R+R/8, 0 }, { -R-R/8, -R/4 } },
42   { { -R+3*R/8, 0 }, { -R+R/8, R/4 } }, // >>--->
43   { { -R+3*R/8, 0 }, { -R+R/8, -R/4 } }
44   };
45 */
46 #undef R
47 #define NUMPLYRLINES (sizeof(player_arrow)/sizeof(mline_t))
48 #define NUMKEYSQUARELINES (sizeof(keysquare)/sizeof(mline_t))
49
50 #define R ((8*PLAYERRADIUS)/7)
51 mline_t cheat_player_arrow[] = {
52   { { -R+R/8, 0 }, { R, 0 } }, // -----
53   { { R, 0 }, { R-R/2, R/6 } },  // ----->
54   { { R, 0 }, { R-R/2, -R/6 } },
55   { { -R+R/8, 0 }, { -R-R/8, R/6 } }, // >----->
56   { { -R+R/8, 0 }, { -R-R/8, -R/6 } },
57   { { -R+3*R/8, 0 }, { -R+R/8, R/6 } }, // >>----->
58   { { -R+3*R/8, 0 }, { -R+R/8, -R/6 } },
59   { { -R/2, 0 }, { -R/2, -R/6 } }, // >>-d--->
60   { { -R/2, -R/6 }, { -R/2+R/6, -R/6 } },
61   { { -R/2+R/6, -R/6 }, { -R/2+R/6, R/4 } },
62   { { -R/6, 0 }, { -R/6, -R/6 } }, // >>-dd-->
63   { { -R/6, -R/6 }, { 0, -R/6 } },
64   { { 0, -R/6 }, { 0, R/4 } },
65   { { R/6, R/4 }, { R/6, -R/7 } }, // >>-ddt->
66   { { R/6, -R/7 }, { R/6+R/32, -R/7-R/32 } },
67   { { R/6+R/32, -R/7-R/32 }, { R/6+R/10, -R/7 } }
68   };
69 #undef R
70 #define NUMCHEATPLYRLINES (sizeof(cheat_player_arrow)/sizeof(mline_t))
71
72 #define R (FRACUNIT)
73 mline_t triangle_guy[] = {
74   { { -.867*R, -.5*R }, { .867*R, -.5*R } },
75   { { .867*R, -.5*R } , { 0, R } },
76   { { 0, R }, { -.867*R, -.5*R } }
77   };
78 #undef R
79 #define NUMTRIANGLEGUYLINES (sizeof(triangle_guy)/sizeof(mline_t))
80
81 #define R (FRACUNIT)
82 mline_t thintriangle_guy[] = {
83   { { -.5*R, -.7*R }, { R, 0 } },
84   { { R, 0 }, { -.5*R, .7*R } },
85   { { -.5*R, .7*R }, { -.5*R, -.7*R } }
86   };
87 #undef R
88 #define NUMTHINTRIANGLEGUYLINES (sizeof(thintriangle_guy)/sizeof(mline_t))
89
90 #endif