ifmapper 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/HISTORY.txt +2 -0
  2. data/IFMapper.gemspec +21 -0
  3. data/IFMapper.rb +27 -0
  4. data/icons/copy.png +0 -0
  5. data/icons/cut.png +0 -0
  6. data/icons/filenew.png +0 -0
  7. data/icons/fileopen.png +0 -0
  8. data/icons/filesave.png +0 -0
  9. data/icons/filesaveas.png +0 -0
  10. data/icons/help.png +0 -0
  11. data/icons/kill.png +0 -0
  12. data/icons/nextpage.png +0 -0
  13. data/icons/paste.png +0 -0
  14. data/icons/prevpage.png +0 -0
  15. data/icons/printicon.png +0 -0
  16. data/icons/redo.png +0 -0
  17. data/icons/saveas.png +0 -0
  18. data/icons/undo.png +0 -0
  19. data/icons/winapp.png +0 -0
  20. data/icons/zoom.png +0 -0
  21. data/lib/IFMapper/Connection.rb +63 -0
  22. data/lib/IFMapper/FXAboutDialogBox.rb +32 -0
  23. data/lib/IFMapper/FXConnection.rb +283 -0
  24. data/lib/IFMapper/FXConnectionDialogBox.rb +126 -0
  25. data/lib/IFMapper/FXMap.rb +1614 -0
  26. data/lib/IFMapper/FXMapDialogBox.rb +51 -0
  27. data/lib/IFMapper/FXMapFileDialog.rb +29 -0
  28. data/lib/IFMapper/FXMapperSettings.rb +45 -0
  29. data/lib/IFMapper/FXMapperWindow.rb +1051 -0
  30. data/lib/IFMapper/FXPage.rb +24 -0
  31. data/lib/IFMapper/FXPageDialogBox.rb +38 -0
  32. data/lib/IFMapper/FXRoom.rb +218 -0
  33. data/lib/IFMapper/FXRoomDialogBox.rb +119 -0
  34. data/lib/IFMapper/FXSearchDialogBox.rb +51 -0
  35. data/lib/IFMapper/FXSpline.rb +54 -0
  36. data/lib/IFMapper/FXWarningBox.rb +45 -0
  37. data/lib/IFMapper/IFMReader.rb +613 -0
  38. data/lib/IFMapper/Map.rb +110 -0
  39. data/lib/IFMapper/PDFMapExporter.rb +315 -0
  40. data/lib/IFMapper/Page.rb +158 -0
  41. data/lib/IFMapper/Room.rb +104 -0
  42. data/maps/Bureaucracy.ifm +75 -0
  43. data/maps/Hollywood_Hijinx.ifm +149 -0
  44. data/maps/Jigsaw.ifm +806 -0
  45. data/maps/LGOP.ifm +705 -0
  46. data/maps/Mercy.ifm +76 -0
  47. data/maps/Planetfall.ifm +186 -0
  48. data/maps/Plundered_Hearts.ifm +251 -0
  49. data/maps/Ralph.ifm +50 -0
  50. data/maps/Robots_of_Dawn.ifm +224 -0
  51. data/maps/Seastalker.ifm +149 -0
  52. data/maps/Sherlock.ifm +209 -0
  53. data/maps/SoFar.ifm +72 -0
  54. data/maps/Starcross.ifm +170 -0
  55. data/maps/Suspended.ifm +82 -0
  56. data/maps/Wishbringer.ifm +277 -0
  57. data/maps/Wishbringer2.ifm +246 -0
  58. data/maps/Zork1.ifm +410 -0
  59. data/maps/Zork2.ifm +150 -0
  60. data/maps/Zork3.ifm +136 -0
  61. data/maps/Zork_Zero.ifm +557 -0
  62. data/maps/anchor.ifm +645 -0
  63. data/maps/atrox.ifm +134 -0
  64. data/maps/awaken.ifm +116 -0
  65. data/maps/babel.ifm +279 -0
  66. data/maps/bse.ifm +150 -0
  67. data/maps/change.ifm +128 -0
  68. data/maps/curses.ifm +307 -0
  69. data/maps/curves.ifm +529 -0
  70. data/maps/edifice.ifm +158 -0
  71. data/maps/frozen.ifm +126 -0
  72. data/maps/glow.ifm +101 -0
  73. data/maps/library.ifm +93 -0
  74. data/maps/mindelec.ifm +89 -0
  75. data/maps/minster.ifm +234 -0
  76. data/maps/muse.ifm +154 -0
  77. data/maps/paperchase.ifm +110 -0
  78. data/maps/space_st.ifm +104 -0
  79. data/maps/stationfall.ifm +320 -0
  80. data/maps/theatre.ifm +182 -0
  81. data/maps/toonesia.ifm +54 -0
  82. data/maps/tortoise.ifm +72 -0
  83. data/maps/vgame.ifm +219 -0
  84. data/maps/weather.ifm +98 -0
  85. data/maps/windhall.ifm +154 -0
  86. data/maps/zebulon.ifm +68 -0
  87. metadata +144 -0
data/maps/edifice.ifm ADDED
@@ -0,0 +1,158 @@
1
+ ########################################################################
2
+ # IFM map for "The Edifice" by Lucian Smith
3
+ # This file written by Glenn Hutchings <zondo@hunting2.demon.co.uk>
4
+ #
5
+ # $Id: edifice.ifm,v 1.1 1998/09/18 12:37:50 dchapes Exp $
6
+ #
7
+ # Status: map and tasks incomplete
8
+ ########################################################################
9
+
10
+ title "The Edifice";
11
+
12
+ ########################################################################
13
+
14
+ map "Start";
15
+
16
+ room "At the Edifice";
17
+ item "the Others";
18
+ item "Rock" tag rock;
19
+ task "Hit recess with rock" need rock;
20
+
21
+ room "Level One" dir e after last tag L1;
22
+
23
+ room "Level Two" dir n go up after S1 tag L2;
24
+
25
+ room "Level Three" dir n go up after S2 tag L3;
26
+
27
+ ########################################################################
28
+
29
+ map "Level One";
30
+
31
+ room "Near the Arch" join L1 tag Arch;
32
+
33
+ room "Muddy Spring" dir ne ne tag Spring;
34
+ item "mud";
35
+
36
+ room "At the Tree" dir ne tag Tree;
37
+ item "Dead Branch" tag branch hidden;
38
+ item "Stick" tag stick hidden;
39
+ item "Log" hidden;
40
+ item "Spear" tag spear hidden;
41
+ item "twigs and leaves" tag twigs hidden;
42
+ task "Cut twisty branches off" after hit_branch get twigs;
43
+ task "Break branch" after last get stick;
44
+ task "Sharpen stick into spear" need stick rock lose stick give spear;
45
+
46
+ room "Up the Tree" dir n go up;
47
+ item "Dead Branch";
48
+ task "Hit branch with rock" need rock tag hit_branch after drink;
49
+
50
+ room "At the Pool" dir s from Tree tag Pool link Spring;
51
+ item "flat rock";
52
+ task "Stand on flat rock and drink" tag drink;
53
+ task "Put twigs and meat on flat rock" need meat twigs drop meat twigs;
54
+ task "Hit flat rock with rock" after last need rock;
55
+ task "Wait for meat to cook, then eat it" after last tag S1;
56
+
57
+ room "By Stump" dir s link Spring tag Stump;
58
+ task "Practice throwing spear at stump" need spear tag throwing_practice;
59
+
60
+ room "Open Grassland" dir s tag Grass link Arch;
61
+ item "Beast";
62
+ item "meat" hidden tag meat;
63
+ task "Kill beast with spear" after throwing_practice need spear lose it;
64
+ task "Cut beast open with rock" after last need rock get meat;
65
+
66
+ room "Stream Rapids" dir e from Stump link Pool Grass;
67
+ item "dead animal";
68
+
69
+ ########################################################################
70
+
71
+ map "Level Two";
72
+
73
+ room "Clearing near Hut" join L2 tag Clearing;
74
+ item "Firepit";
75
+ item "Bone" tag bone hidden;
76
+ task "Search firepit" give last;
77
+
78
+ room "River" dir s;
79
+ item "White Bark" tag bark hidden;
80
+
81
+ room "Inside Hut" dir e from Clearing;
82
+ item "Grandmother";
83
+ item "Wife";
84
+ item "Son";
85
+ task "Give feverleaf to Son" need leaf lose it tag S2;
86
+
87
+ room "Forest Path" dir n from Clearing;
88
+ item "Berry Bush";
89
+ item "Berries" tag berries;
90
+ item "Purple Paste" tag paste hidden;
91
+ task "Grind berries into paste" need berries lose it give last;
92
+
93
+ room "Stranger's Hut" dir ne;
94
+ item "Stranger";
95
+ item "Small Boy";
96
+ item "Feverleaf" hidden tag leaf;
97
+ task "Dip bone in paste" need bone paste bark;
98
+ task "Draw feverleaf on bark" after last need bark bone;
99
+ task "Say 'ne rema akne'" after last;
100
+ task "Point at feverleaf" after last need bark give leaf;
101
+
102
+ ########################################################################
103
+
104
+ map "Level Three";
105
+
106
+ room "Village" join L3 tag Village;
107
+
108
+ room "Ridge Path" dir nw;
109
+ task "Jump onto horse's back" after leave_fruit goto Riding;
110
+
111
+ room "Canyon Path" dir e link Village;
112
+ task "Leave fruit for horse" after show_fruit tag leave_fruit drop fruit;
113
+
114
+ room "Canyon" dir ne;
115
+ item "herd of horses";
116
+ item "Horse" hidden;
117
+ task "Show fruit to horse" need fruit tag show_fruit;
118
+
119
+ room "Waterfall" dir n;
120
+ item "fruit trees";
121
+ item "piece of fruit" hidden tag fruit;
122
+
123
+ ########################################################################
124
+
125
+ map "On the Horse";
126
+
127
+ room "Streaking Across the Countryside" tag Riding;
128
+ task "Hold onto mane";
129
+
130
+ ########################################################################
131
+
132
+ # Stranger's language:
133
+ #
134
+ # a yes?
135
+ # akne ill
136
+ # alanasen understand
137
+ # alsen ?
138
+ # ben is
139
+ # fa you
140
+ # fe your
141
+ # gralashen kill
142
+ # hallen in?
143
+ # krande bad
144
+ # lalse sick
145
+ # na I, me
146
+ # ne my
147
+ # rakasha feverleaf
148
+ # rema son
149
+ # salum hut
150
+ # scarmul ?
151
+ # selme good?
152
+ # takramul panther
153
+ # takre knife
154
+ # tsa this
155
+ # vicnen ?
156
+ # y no
157
+
158
+ ########################################################################
data/maps/frozen.ifm ADDED
@@ -0,0 +1,126 @@
1
+ # IFM Map for frozen.z5
2
+ # "Frozen: A Night at the Lab" is by Jeremy Farnham
3
+ # This file writen by Dave Chapeskie <dchapes@ddm.crosswinds.net>
4
+ # $Id: frozen.ifm,v 1.4 2000/10/27 17:22:45 dchapes Exp $
5
+
6
+ title "Frozen: A Night at the Lab";
7
+
8
+ ########################################################################
9
+ map "Basement";
10
+ room "Stairs" tag N0 exit s;
11
+ room "Basement" tag H0 dir s exit n s nw;
12
+ item "door";
13
+ task "x door" note "\"Experimental Laboratory\""
14
+ after X_calendar;
15
+ task "open door" tag O_door after last;
16
+ room "Stairs" tag S0 dir s exit n;
17
+
18
+ room "Lab" tag Lab dir nw from H0 after O_door;
19
+ item "huge machine";
20
+ item "large sphere";
21
+ item "diagram";
22
+ task "x daigram. x machine. x sphere";
23
+ task "Drop calendar" after last need calendar drop it;
24
+ task "get on calendar" tag GO_calendar after last;
25
+ task "Get sphere" after GO_calendar goto Pentagram;
26
+
27
+
28
+ ########################################################################
29
+ map "First Floor";
30
+ room "Stairs" tag N1 exit n s;
31
+ room "Hall" tag H1 dir s exit n s;
32
+ room "Stairs" tag S1 dir s exit n s;
33
+
34
+ ########################################################################
35
+ map "Second Floor";
36
+ room "Stairs" tag N2 exit s;
37
+ room "Hall" tag H2 dir s exit n s w;
38
+ room "Stairs" tag S2 dir s exit n;
39
+
40
+ room "Computer Lab" start dir w sw from H2 exit ne;
41
+ item "computer";
42
+ item "back pack" tag pack keep;
43
+ # task "open pack" need pack; #optional
44
+
45
+ ########################################################################
46
+ map "Third Floor";
47
+ room "Stairs" tag N3 exit s;
48
+ room "Hall" tag H3 dir s exit n s ne;
49
+ item "man";
50
+ room "Stairs" tag S3 dir s exit n;
51
+
52
+ room "Office" dir ne from H3 exit sw;
53
+ item "computer";
54
+ item "desk";
55
+ task "x desk" get calendar note "reveals calendar";
56
+ item "calendar" tag calendar hidden;
57
+ task "x calendar" tag X_calendar note "\"basement test\"";
58
+
59
+ ########################################################################
60
+ map "The other side";
61
+ room "Pentagram Room" tag Pentagram join Lab exit se;
62
+ item "huge pentagram";
63
+ item "swirling lights";
64
+ item "dust";
65
+ task "show spirit star page" tag S_star need star_page rexal;
66
+ task "show spirit square page" tag S_square need square_page rexal;
67
+ task "show spirit circle page" tag S_circle need circle_page rexal;
68
+ task "enter pentagram" tag GO_pentagram need rexal
69
+ after S_star S_square S_circle;
70
+ task "pour sand in circle" need rexal after GO_pentagram W_amulet
71
+ finish;
72
+ room "Cellar" tag Cellar dir se exit nw ne e se s;
73
+ item "swirling lights";
74
+ item "dust";
75
+ room "Storage Room" need amulet dir se exit nw n;
76
+ item "glass cases";
77
+ room "Storage Room" need amulet dir n link Cellar exit w n s;
78
+ item "bottles";
79
+ task "search bottles" after X_page X_book get rexal;
80
+ item "rexal bottle" tag rexal hidden keep;
81
+ room "Storage Room" need amulet dir n link Cellar exit sw s;
82
+ item "jars";
83
+
84
+ room "Stairs" tag Stairs dir s s from Cellar go u exit n s;
85
+ room "Kitchen" dir s exit n e;
86
+ item "cupboards";
87
+ item "leaves and dirt";
88
+ room "Entry" tag Entry dir e exit w n s;
89
+ room "Library" dir n exit s;
90
+ item "books";
91
+ item "chairs";
92
+ item "circle page" tag circle_page hidden after W_amulet keep;
93
+ task "x page" tag X_page need circle_page note "'Rexal'";
94
+
95
+ room "Front Yard" dir s from Entry exit n s;
96
+ item "charred body";
97
+ task "x body" get amulet note "reveals amulet";
98
+ item "amulet" tag amulet hidden keep;
99
+ task "wear amulet" tag W_amulet need amulet;
100
+
101
+ room "Attic" dir w n from Stairs go up;
102
+ item "dust";
103
+ item "bed";
104
+ item "mirror";
105
+ task "x mirror" tag X_mirror;
106
+ item "dusty book" tag book hidden after W_amulet keep;
107
+ task "read book" tag X_book need book note "'Rexal'"
108
+ give star_page square_page;
109
+ item "star page" tag star_page hidden keep;
110
+ item "square page" tag square_page hidden keep;
111
+
112
+ # Join up all the stairs
113
+ join N0 to N1 cmd to "U" cmd from "D" hidden;
114
+ join N1 to N2 cmd to "U" cmd from "D" hidden;
115
+ join N2 to N3 cmd to "U" cmd from "D" hidden;
116
+ join S0 to S1 cmd to "U" cmd from "D" hidden;
117
+ join S1 to S2 cmd to "U" cmd from "D" hidden;
118
+ join S2 to S3 cmd to "U" cmd from "D" hidden;
119
+
120
+ ########################################################################
121
+ # Tweaks to help the solver generate a better walkthrough
122
+
123
+ task X_calendar need calendar;
124
+ task X_mirror after W_amulet;
125
+
126
+ # EOF
data/maps/glow.ifm ADDED
@@ -0,0 +1,101 @@
1
+ ########################################################################
2
+ # IFM map for "Glowgrass" by Nate Cull
3
+ # This file written by Glenn Hutchings <zondo@hunting2.demon.co.uk>
4
+ #
5
+ # $Id: glow.ifm,v 1.1 1998/09/18 12:37:50 dchapes Exp $
6
+ #
7
+ # Status: map complete, has tasks
8
+ ########################################################################
9
+
10
+ title "Glowgrass";
11
+
12
+ ########################################################################
13
+
14
+ room "Courtyard" tag Courtyard exit ne e;
15
+ item "glimmer";
16
+ task "Throw frisbee" need frisbee;
17
+ item "silver rod" hidden after last tag rod;
18
+ task "Unlock door with rod" need rod;
19
+ task "Open door" after last tag open_1;
20
+
21
+ room "Lawn" dir e exit se;
22
+ task "Examine lawn";
23
+ item "clump of glowgrass" hidden after last tag grass;
24
+ item "sheeting";
25
+
26
+ room "Pool" dir se tag Pool;
27
+ item "outlet grate";
28
+ task "Examine grate";
29
+ item "set of cards" hidden after last tag holos;
30
+ item "orange frisbee" tag frisbee;
31
+
32
+ room "Vehicle Dome" dir ne from Courtyard after open_1
33
+ tag Dome exit w;
34
+ item "skycar";
35
+ task "Open hatch";
36
+ task "Open door" tag open_2;
37
+
38
+ room "Skycar" dir n go in after last;
39
+ item "access panel";
40
+ task "Open panel" tag open_panel;
41
+ item "power cell" hidden after last tag cell;
42
+ item "corroded metal coil" hidden tag corroded;
43
+ item "triangular hole" hidden note "Put water in here";
44
+ item "round hole" hidden note "Sunburst symbol";
45
+ item "rectangular hole" hidden note "Power goes in here";
46
+ item "red disk" hidden tag red_disk;
47
+ task "Put tap in triangular hole" need vat drop it after open_panel;
48
+ task "Turn tap" after last tag triangular;
49
+ task "Put shiny coil in round hole" need corroded coil drop it tag round;
50
+ task "Replace cell" after password need cell;
51
+ task "Put green disk in slot" after last need red_disk green_disk
52
+ drop it;
53
+ task "Press button" after last triangular round;
54
+ task "Say the password" after last cmd "Say costello";
55
+ task "Close hatch" after last;
56
+ task "Close panel" after last;
57
+ task "Pull lever" after last;
58
+ task "Follow Marie's instructions" after last;
59
+
60
+ room "Living Area" dir w from Dome exit w sw after open_2
61
+ tag Living;
62
+ item "sculpture";
63
+ item "black cube";
64
+ item "yellow disk" tag yellow_disk;
65
+ task "Put cable in power cell" need cable cell;
66
+ task "Put cable in cube socket" after last;
67
+ task "Press button" after last;
68
+ task "Put green disk in slot" after last need green_disk yellow_disk;
69
+ task "Sit in sculpture" after last;
70
+ task "Watch the recording" after last;
71
+ task "Show frisbee to Marie" follow last need frisbee;
72
+ task "Show teddy to Marie" follow last need bear;
73
+ task "Show holograms to Marie" follow last need holos;
74
+ task "Show glowgrass to Marie" follow last need grass;
75
+ task "Ask Marie about skycar" after last note "Password 'costello'"
76
+ tag password;
77
+
78
+ room "Sleep Area" dir sw sw tag Sleep exit nw;
79
+ item "skeleton";
80
+ item "mattress";
81
+ item "images";
82
+ item "device" hidden;
83
+ item "headset" hidden;
84
+ item "green disk" hidden tag green_disk;
85
+ item "fabric bear" hidden tag bear;
86
+
87
+ room "Hygiene Area" dir nw tag Hygiene exit ne;
88
+ item "blue lens";
89
+ item "white vat" tag vat;
90
+
91
+ room "Service Area" dir ne tag Service link Living;
92
+ item "printout";
93
+ task "Touch panel";
94
+ item "black cable" hidden after last tag cable;
95
+ item "white box" hidden after last tag box;
96
+ task "Open box" need box;
97
+ item "transparent bag" hidden;
98
+ task "Open bag" after last;
99
+ item "shiny metal coil" hidden after last tag coil;
100
+
101
+ ########################################################################
data/maps/library.ifm ADDED
@@ -0,0 +1,93 @@
1
+ # IFM Map for library.z5
2
+ # "All QUiet on the Library Front" is by Michael S. Phillips
3
+ # This file writen by Dave Chapeskie <dchapes@ddm.crosswinds.net>
4
+ # $Id: library.ifm,v 1.4 2003/01/11 21:29:21 dchapes Exp $
5
+
6
+ title "All Quiet on the Library Front";
7
+ item "ID card" tag id;
8
+
9
+ ########################################################################
10
+ map "Library";
11
+ room "Lobby" tag Lobby start exit w nw n e;
12
+ item "circulation desk";
13
+ item "security gates";
14
+ #item "card catalog";
15
+ item "attendant" tag Alan;
16
+ task "examine attendant. read tag" tag X_Alan
17
+ note "his name is Alan";
18
+ task "ask Alan about novel" tag Q_novel
19
+ note "he lost \"Debt of Honor\"";
20
+ task "ask him about Nelson" tag Q_Nelson follow last;
21
+ task "ask him about librarian" tag Q_librarian follow last;
22
+ task "ask Alan about key" tag Q_key2 after Q_key;
23
+ task "give him ID card" tag G_id follow last need id lose it
24
+ give key score 5;
25
+ item "key" tag key hidden;
26
+ task "give attendant key" tag G_key after L_door
27
+ need key lose it give id2;
28
+ item "ID card" tag id2 hidden;
29
+ task "give Alan novel" tag G_novel need novel lose it
30
+ after Q_novel score 2
31
+ note "he gets distracted";
32
+
33
+ room "Ground Floor Stacks" dir w w exit n e;
34
+ item "shelves";
35
+ item "ancient desk";
36
+ item "reference librarian" tag Marion;
37
+ task "examine shelves. examine magazines" tag X_mags;
38
+ task "xyzzy" after last score 1;
39
+ task "examine librarian. read tag" tag X_Marion
40
+ note "her name is Marion";
41
+ task "ask Marion about Graham Nelson" tag Q_Nelson2 after Q_librarian;
42
+ task "ask her about rare books room" tag Q_rare_books follow last;
43
+ task "ask her about key" tag Q_key follow last;
44
+ task "give Encyclopedia Frobozzica to Marion" need frobozzica
45
+ lose it score 2;
46
+
47
+ room "Ground Floor Stairwell" dir n exit s;
48
+ item "damaged picture";
49
+ task "smell. look under stairs" give herring score 1;
50
+ item "red herring" tag herring hidden;
51
+
52
+ room "Second Floor Stairwell" dir w w go up exit s;
53
+ item "painting";
54
+ task "examine painting";
55
+ task "give herring to grue" tag G_herring need herring lose it
56
+ after last score 2;
57
+
58
+ room "Second Floor Stacks" tag Second_Floor dir s exit n e;
59
+ item "shelves";
60
+ item "wooden door" tag door;
61
+ task "search shelves" tag XX_shelves after Q_novel give novel score 5;
62
+ item "\"Debt of Honor\"" tag novel hidden;
63
+ task "unlock/open door" tag UL_door need key;
64
+ task "close/lock door" tag L_door need key
65
+ note "otherwise Alan won't give you back your id card";
66
+
67
+ room "Computer Lab" dir e;
68
+ item "computers";
69
+ item "printers";
70
+ item "technician";
71
+ task "ask technician about security gates" tag Q_gates score 2
72
+ note "he then leaves";
73
+ task "examine printers" after last give frobozzica;
74
+ item "Encyclopedia Frobozzica" tag frobozzica hidden score 5;
75
+
76
+ room "Rare Books Room" dir s from Second_Floor style special after UL_door exit n;
77
+ item "biography of Graham Nelson" tag bio score 5;
78
+
79
+ room "Duplicating Services" tag Dup_Serv dir nw from Lobby;
80
+ item "copier";
81
+ item "technician";
82
+ task "examine technician" tag X_tech note "semi-amusing result";
83
+
84
+ room "Exit" tag Exit dir e from Lobby need bio finish;
85
+
86
+ ########################################################################
87
+ # Tweaks to help the solver out
88
+
89
+ task UL_door need frobozzica;
90
+ task L_door need bio;
91
+ link Dup_Serv need bio;
92
+ link Exit after X_tech;
93
+ # EOF