1*dcfebd78Scgd /* $NetBSD: map.c,v 1.2 1995/03/24 03:58:58 cgd Exp $ */
2*dcfebd78Scgd
386a62b8dSjtc #define minusminus plusplus
486a62b8dSjtc #define minusplus plusminus
586a62b8dSjtc
main()686a62b8dSjtc main()
786a62b8dSjtc {
886a62b8dSjtc /* Set up */
986a62b8dSjtc
1086a62b8dSjtc openpl();
1186a62b8dSjtc space(-1400, -1000, 1200, 1200);
1286a62b8dSjtc
1386a62b8dSjtc /* Big box */
1486a62b8dSjtc
1586a62b8dSjtc move(-1400, -1000);
1686a62b8dSjtc cont(-1400, 1000);
1786a62b8dSjtc cont(600, 1000);
1886a62b8dSjtc cont(600, -1000);
1986a62b8dSjtc cont(-1400, -1000);
2086a62b8dSjtc
2186a62b8dSjtc /* Grid -- horizontal lines every 200 */
2286a62b8dSjtc
2386a62b8dSjtc linemod("dotted");
2486a62b8dSjtc line(600, -800, -1400, -800);
2586a62b8dSjtc line(-1400, -600, 600, -600);
2686a62b8dSjtc line(600, -400, -1400, -400);
2786a62b8dSjtc line(-1400, -200, 600, -200);
2886a62b8dSjtc linemod("solid");
2986a62b8dSjtc line(600, 0, -1400, 0);
3086a62b8dSjtc linemod("dotted");
3186a62b8dSjtc line(-1400, 200, 600, 200);
3286a62b8dSjtc line(600, 400, -1400, 400);
3386a62b8dSjtc line(-1400, 600, 600, 600);
3486a62b8dSjtc line(600, 800, -1400, 800);
3586a62b8dSjtc
3686a62b8dSjtc /* Grid -- vertical lines every 200 */
3786a62b8dSjtc
3886a62b8dSjtc line(-1200, 1000, -1200, -1000);
3986a62b8dSjtc line(-1000, 1000, -1000, -1000);
4086a62b8dSjtc line(-800, 1000, -800, -1000);
4186a62b8dSjtc line(-600, 1000, -600, -1000);
4286a62b8dSjtc linemod("solid");
4386a62b8dSjtc line(-400, 1000, -400, -1000);
4486a62b8dSjtc linemod("dotted");
4586a62b8dSjtc line(-200, 1000, -200, -1000);
4686a62b8dSjtc line(0, 1000, 0, -1000);
4786a62b8dSjtc line(200, 1000, 200, -1000);
4886a62b8dSjtc line(400, 1000, 400, -1000);
4986a62b8dSjtc
5086a62b8dSjtc /* Circles radius +250 on "center" */
5186a62b8dSjtc
5286a62b8dSjtc linemod("solid");
5386a62b8dSjtc circle(-400, 0, 250);
5486a62b8dSjtc circle(-400, 0, 500);
5586a62b8dSjtc circle(-400, 0, 750);
5686a62b8dSjtc circle(-400, 0, 1000);
5786a62b8dSjtc
5886a62b8dSjtc /* A few labels */
5986a62b8dSjtc
6086a62b8dSjtc move(-670, 1075);
6186a62b8dSjtc label("- THE PHANTASIA UNIVERSE -");
6286a62b8dSjtc line(-630, 1045, -115, 1045);
6386a62b8dSjtc move(-360, 80);
6486a62b8dSjtc label("Lorien");
6586a62b8dSjtc move(-385, -100);
6686a62b8dSjtc label("Ithilien");
6786a62b8dSjtc move(-560, 80);
6886a62b8dSjtc label("Rohan");
6986a62b8dSjtc move(-580, -100);
7086a62b8dSjtc label("Anorien");
7186a62b8dSjtc plusplus("Rovanion", -250, 320);
7286a62b8dSjtc plusplus("The Iron Hills", -100, 560);
7386a62b8dSjtc plusplus("Rhun", 250, 570);
7486a62b8dSjtc minusplus("Dunland", -700, 160);
7586a62b8dSjtc minusplus("Eriador", -920, 300);
7686a62b8dSjtc minusplus("The Northern Waste", -1240, 320);
7786a62b8dSjtc minusminus("Gondor", -720, -180);
7886a62b8dSjtc minusminus("South Gondor", -940, -270);
7986a62b8dSjtc minusminus("Far Harad", -1100, -500);
8086a62b8dSjtc plusminus("Mordor", -180, -300);
8186a62b8dSjtc plusminus("Khand", 0, -500);
8286a62b8dSjtc plusminus("Near Harad", 40, -780);
8386a62b8dSjtc move(340, 900);
8486a62b8dSjtc label("The Moors");
8586a62b8dSjtc move(300, 840);
8686a62b8dSjtc label("Adventurous");
8786a62b8dSjtc move(340, -840);
8886a62b8dSjtc label("The Moors");
8986a62b8dSjtc move(300, -900);
9086a62b8dSjtc label("Adventurous");
9186a62b8dSjtc move(-1340, 900);
9286a62b8dSjtc label("The Moors");
9386a62b8dSjtc move(-1340, 840);
9486a62b8dSjtc label("Adventurous");
9586a62b8dSjtc move(-1340, -840);
9686a62b8dSjtc label("The Moors");
9786a62b8dSjtc move(-1340, -900);
9886a62b8dSjtc label("Adventurous");
9986a62b8dSjtc move(700, 1000);
10086a62b8dSjtc label("OUTER CIRCLES:");
10186a62b8dSjtc line(690, 970, 1000, 970);
10286a62b8dSjtc move(700, 900);
10386a62b8dSjtc label("> 9: The Outer Waste");
10486a62b8dSjtc move(700, 800);
10586a62b8dSjtc label("> 20: The Dead Marshes");
10686a62b8dSjtc move(700, 700);
10786a62b8dSjtc label("> 35: Kennaquhair");
10886a62b8dSjtc move(700, 600);
10986a62b8dSjtc label("> 55: Morannon");
11086a62b8dSjtc move(700, 300);
11186a62b8dSjtc label("(0,0): The Lord's Chamber");
11286a62b8dSjtc
11386a62b8dSjtc move(700, -400);
11486a62b8dSjtc label("Grid squares are 100 x 100");
11586a62b8dSjtc move(700, -800);
11686a62b8dSjtc label("Created by Ted Estes");
11786a62b8dSjtc move(700, -860);
11886a62b8dSjtc label("Plotted by Chris Robertson");
11986a62b8dSjtc move(700, -920);
12086a62b8dSjtc label(" c 1985");
12186a62b8dSjtc circle(723, -923, 20);
12286a62b8dSjtc
12386a62b8dSjtc /* Close down */
12486a62b8dSjtc
12586a62b8dSjtc move(-1380, 1180);
12686a62b8dSjtc closepl();
12786a62b8dSjtc exit(0);
12886a62b8dSjtc }
12986a62b8dSjtc
plusplus(s,x,y)13086a62b8dSjtc plusplus(s, x, y) /* draw strings in plus plus quadrant */
13186a62b8dSjtc char *s;
13286a62b8dSjtc int x, y;
13386a62b8dSjtc {
13486a62b8dSjtc char s1[2];
13586a62b8dSjtc
13686a62b8dSjtc while (*s)
13786a62b8dSjtc {
13886a62b8dSjtc move(x, y);
13986a62b8dSjtc s1[0] = *s++;
14086a62b8dSjtc s1[1] = '\0';
14186a62b8dSjtc label(s1);
14286a62b8dSjtc x += 25;
14386a62b8dSjtc y -= 30;
14486a62b8dSjtc }
14586a62b8dSjtc }
14686a62b8dSjtc
plusminus(s,x,y)14786a62b8dSjtc plusminus(s, x, y) /* draw strings in plus minus quadrant */
14886a62b8dSjtc char *s;
14986a62b8dSjtc int x, y;
15086a62b8dSjtc {
15186a62b8dSjtc char s1[2];
15286a62b8dSjtc
15386a62b8dSjtc while (*s)
15486a62b8dSjtc {
15586a62b8dSjtc move(x, y);
15686a62b8dSjtc s1[0] = *s++;
15786a62b8dSjtc s1[1] = '\0';
15886a62b8dSjtc label(s1);
15986a62b8dSjtc x += 25;
16086a62b8dSjtc y += 30;
16186a62b8dSjtc }
16286a62b8dSjtc }
163