meiro 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +97 -0
- data/Rakefile +11 -0
- data/lib/meiro.rb +20 -0
- data/lib/meiro/block.rb +239 -0
- data/lib/meiro/dungeon.rb +64 -0
- data/lib/meiro/floor.rb +198 -0
- data/lib/meiro/map_layer.rb +117 -0
- data/lib/meiro/options.rb +56 -0
- data/lib/meiro/partition.rb +20 -0
- data/lib/meiro/passage.rb +24 -0
- data/lib/meiro/room.rb +233 -0
- data/lib/meiro/tile.rb +806 -0
- data/lib/meiro/tile_manager.rb +92 -0
- data/lib/meiro/tile_manager/binary_tile_manager.rb +15 -0
- data/lib/meiro/tile_manager/detailed_tile_manager.rb +347 -0
- data/lib/meiro/tile_manager/rogue_like_tile_manager.rb +57 -0
- data/lib/meiro/version.rb +3 -0
- data/meiro.gemspec +25 -0
- data/spec/block_spec.rb +460 -0
- data/spec/dungeon_spec.rb +153 -0
- data/spec/floor_spec.rb +526 -0
- data/spec/map_layer_spec.rb +296 -0
- data/spec/meiro_spec.rb +15 -0
- data/spec/room_spec.rb +564 -0
- data/spec/spec_helper.rb +8 -0
- metadata +137 -0
data/lib/meiro/tile.rb
ADDED
@@ -0,0 +1,806 @@
|
|
1
|
+
require "meiro/tile_manager"
|
2
|
+
require "meiro/tile_manager/binary_tile_manager"
|
3
|
+
require "meiro/tile_manager/detailed_tile_manager"
|
4
|
+
require "meiro/tile_manager/rogue_like_tile_manager"
|
5
|
+
|
6
|
+
module Meiro
|
7
|
+
module Tile
|
8
|
+
TYPE = {
|
9
|
+
wall: 0,
|
10
|
+
flat: 1,
|
11
|
+
gate: 2,
|
12
|
+
}
|
13
|
+
|
14
|
+
module ModuleMethods
|
15
|
+
def classify(tiles, type)
|
16
|
+
case type
|
17
|
+
when :rogue_like
|
18
|
+
RogueLikeTileManager.classify(tiles)
|
19
|
+
when :detail
|
20
|
+
DetailedTileManager.classify(tiles)
|
21
|
+
when :binary
|
22
|
+
BinaryTileManager.classify(tiles)
|
23
|
+
else
|
24
|
+
tiles[1, 1]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def wall
|
29
|
+
TileManager.wall
|
30
|
+
end
|
31
|
+
|
32
|
+
def flat
|
33
|
+
TileManager.flat
|
34
|
+
end
|
35
|
+
|
36
|
+
def gate
|
37
|
+
TileManager.gate
|
38
|
+
end
|
39
|
+
|
40
|
+
def passage
|
41
|
+
TileManager.passage
|
42
|
+
end
|
43
|
+
end
|
44
|
+
extend ModuleMethods
|
45
|
+
|
46
|
+
class BaseTile
|
47
|
+
class << self
|
48
|
+
def register_type(symbol)
|
49
|
+
@type = symbol
|
50
|
+
end
|
51
|
+
|
52
|
+
def register_sign(sign)
|
53
|
+
@sign = sign
|
54
|
+
end
|
55
|
+
|
56
|
+
def walkable(bool)
|
57
|
+
@walkable = !!bool
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def type
|
62
|
+
self.class.instance_variable_get(:@type) ||
|
63
|
+
self.class.superclass.instance_variable_get(:@type)
|
64
|
+
end
|
65
|
+
|
66
|
+
def type_is?(symbol)
|
67
|
+
self.type == symbol
|
68
|
+
end
|
69
|
+
|
70
|
+
def sign
|
71
|
+
self.class.instance_variable_get(:@sign) ||
|
72
|
+
self.class.superclass.instance_variable_get(:@sign)
|
73
|
+
end
|
74
|
+
|
75
|
+
def to_s
|
76
|
+
sign
|
77
|
+
end
|
78
|
+
|
79
|
+
def walkable?
|
80
|
+
!!(self.class.instance_variable_get(:@walkable) ||
|
81
|
+
self.class.superclass.instance_variable_get(:@walkable))
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class Wall < BaseTile
|
86
|
+
register_type :wall
|
87
|
+
register_sign ' '
|
88
|
+
walkable false
|
89
|
+
end
|
90
|
+
|
91
|
+
class Flat < BaseTile
|
92
|
+
register_type :flat
|
93
|
+
register_sign '.'
|
94
|
+
walkable true
|
95
|
+
end
|
96
|
+
|
97
|
+
class Gate < Flat
|
98
|
+
register_type :gate
|
99
|
+
register_sign '+'
|
100
|
+
walkable true
|
101
|
+
end
|
102
|
+
|
103
|
+
class BinaryWall < Wall
|
104
|
+
register_type :binary_wall
|
105
|
+
register_sign '#'
|
106
|
+
walkable false
|
107
|
+
end
|
108
|
+
|
109
|
+
class Passage < Flat
|
110
|
+
register_type :passage
|
111
|
+
register_sign '#'
|
112
|
+
walkable true
|
113
|
+
end
|
114
|
+
|
115
|
+
###### ここからrogue_like Tile ###################################
|
116
|
+
|
117
|
+
# [ ]
|
118
|
+
# [ o ] o: target
|
119
|
+
# [ ]
|
120
|
+
#
|
121
|
+
# 上の図はoを対象として、3x3の周囲9マスのマップを切り出した図を表す
|
122
|
+
|
123
|
+
# [## ]
|
124
|
+
# [## ]
|
125
|
+
# [## ]
|
126
|
+
class LWall < Wall
|
127
|
+
register_type :l_wall
|
128
|
+
register_sign '|'
|
129
|
+
walkable false
|
130
|
+
end
|
131
|
+
|
132
|
+
# [###]
|
133
|
+
# [###]
|
134
|
+
# [## ]
|
135
|
+
class LWallTCorner < Wall
|
136
|
+
register_type :l_wall_t_corner
|
137
|
+
register_sign '|'
|
138
|
+
walkable false
|
139
|
+
end
|
140
|
+
|
141
|
+
# [## ]
|
142
|
+
# [###]
|
143
|
+
# [###]
|
144
|
+
class LWallBCorner < Wall
|
145
|
+
register_type :l_wall_b_corner
|
146
|
+
register_sign '|'
|
147
|
+
walkable false
|
148
|
+
end
|
149
|
+
|
150
|
+
# [ ##]
|
151
|
+
# [ ##]
|
152
|
+
# [ ##]
|
153
|
+
class RWall < Wall
|
154
|
+
register_type :r_wall
|
155
|
+
register_sign '|'
|
156
|
+
walkable false
|
157
|
+
end
|
158
|
+
|
159
|
+
# [###]
|
160
|
+
# [###]
|
161
|
+
# [ ##]
|
162
|
+
class RWallTCorner < Wall
|
163
|
+
register_type :r_wall_t_corner
|
164
|
+
register_sign '|'
|
165
|
+
walkable false
|
166
|
+
end
|
167
|
+
|
168
|
+
# [ ##]
|
169
|
+
# [###]
|
170
|
+
# [###]
|
171
|
+
class RWallBCorner < Wall
|
172
|
+
register_type :r_wall_t_corner
|
173
|
+
register_sign '|'
|
174
|
+
walkable false
|
175
|
+
end
|
176
|
+
|
177
|
+
# [###]
|
178
|
+
# [###]
|
179
|
+
# [ ]
|
180
|
+
class TWall < Wall
|
181
|
+
register_type :t_wall
|
182
|
+
register_sign '-'
|
183
|
+
walkable false
|
184
|
+
end
|
185
|
+
|
186
|
+
# [ ]
|
187
|
+
# [###]
|
188
|
+
# [###]
|
189
|
+
class BWall < Wall
|
190
|
+
register_type :b_wall
|
191
|
+
register_sign '-'
|
192
|
+
walkable false
|
193
|
+
end
|
194
|
+
|
195
|
+
###### ここまでrogue_like Tile ###################################
|
196
|
+
|
197
|
+
###### ここからdetailed Tile #####################################
|
198
|
+
|
199
|
+
# 以降に出現する数字は以下のように定義している。
|
200
|
+
#
|
201
|
+
# 123
|
202
|
+
# 456
|
203
|
+
# 789
|
204
|
+
#
|
205
|
+
# 1つの壁を上のような3x3で考えた時、直上のタイルが床(またはそれに順
|
206
|
+
# ずる壁以外)のタイルであった場合に、2が欠けている(Chipped2)、と表
|
207
|
+
# 現する。同様に、左下と右下が床のタイルであった場合に、7と9が欠け
|
208
|
+
# ている(Chipped79)、と表現する。
|
209
|
+
|
210
|
+
# [ ##]
|
211
|
+
# [###]
|
212
|
+
# [###]
|
213
|
+
class Chipped1 < Wall
|
214
|
+
register_type :chipped_1
|
215
|
+
register_sign '|'
|
216
|
+
walkable false
|
217
|
+
end
|
218
|
+
|
219
|
+
# [# #] [ #] [# ] [ ]
|
220
|
+
# [###] [###] [###] [###]
|
221
|
+
# [###] [###] [###] [###]
|
222
|
+
class Chipped2 < Wall
|
223
|
+
register_type :chipped_2
|
224
|
+
register_sign '-'
|
225
|
+
walkable false
|
226
|
+
end
|
227
|
+
|
228
|
+
# [## ]
|
229
|
+
# [###]
|
230
|
+
# [###]
|
231
|
+
class Chipped3 < Wall
|
232
|
+
register_type :chipped_3
|
233
|
+
register_sign '|'
|
234
|
+
walkable false
|
235
|
+
end
|
236
|
+
|
237
|
+
# [###] [ ##] [###] [ ##]
|
238
|
+
# [ ##] [ ##] [ ##] [ ##]
|
239
|
+
# [###] [###] [ ##] [ ##]
|
240
|
+
class Chipped4 < Wall
|
241
|
+
register_type :chipped_4
|
242
|
+
register_sign '|'
|
243
|
+
walkable false
|
244
|
+
end
|
245
|
+
|
246
|
+
# [###] [## ] [###] [## ]
|
247
|
+
# [## ] [## ] [## ] [## ]
|
248
|
+
# [###] [###] [## ] [## ]
|
249
|
+
class Chipped6 < Wall
|
250
|
+
register_type :chipped_6
|
251
|
+
register_sign '|'
|
252
|
+
walkable false
|
253
|
+
end
|
254
|
+
|
255
|
+
# [###]
|
256
|
+
# [###]
|
257
|
+
# [ ##]
|
258
|
+
class Chipped7 < Wall
|
259
|
+
register_type :chipped_7
|
260
|
+
register_sign '|'
|
261
|
+
walkable false
|
262
|
+
end
|
263
|
+
|
264
|
+
# [###] [###] [###] [###]
|
265
|
+
# [###] [###] [###] [###]
|
266
|
+
# [# #] [# ] [ #] [ ]
|
267
|
+
class Chipped8 < Wall
|
268
|
+
register_type :chipped_8
|
269
|
+
register_sign '-'
|
270
|
+
walkable false
|
271
|
+
end
|
272
|
+
|
273
|
+
# [###]
|
274
|
+
# [###]
|
275
|
+
# [## ]
|
276
|
+
class Chipped9 < Wall
|
277
|
+
register_type :chipped_9
|
278
|
+
register_sign '|'
|
279
|
+
walkable false
|
280
|
+
end
|
281
|
+
|
282
|
+
# [ # ]
|
283
|
+
# [###]
|
284
|
+
# [###]
|
285
|
+
class Chipped13 < Wall
|
286
|
+
register_type :chipped_13
|
287
|
+
register_sign ' '
|
288
|
+
walkable false
|
289
|
+
end
|
290
|
+
|
291
|
+
# [ ##] [ ##] [ # ] [ # ]
|
292
|
+
# [## ] [## ] [## ] [## ]
|
293
|
+
# [###] [## ] [###] [## ]
|
294
|
+
class Chipped16 < Wall
|
295
|
+
register_type :chipped_16
|
296
|
+
register_sign ' '
|
297
|
+
walkable false
|
298
|
+
end
|
299
|
+
|
300
|
+
# [ ##]
|
301
|
+
# [###]
|
302
|
+
# [ ##]
|
303
|
+
class Chipped17 < Wall
|
304
|
+
register_type :chipped_17
|
305
|
+
register_sign ' '
|
306
|
+
walkable false
|
307
|
+
end
|
308
|
+
|
309
|
+
# [ ##] [ ##] [ ##] [ ##]
|
310
|
+
# [###] [###] [###] [###]
|
311
|
+
# [# #] [# ] [ #] [ ]
|
312
|
+
class Chipped18 < Wall
|
313
|
+
register_type :chipped_18
|
314
|
+
register_sign ' '
|
315
|
+
walkable false
|
316
|
+
end
|
317
|
+
|
318
|
+
# [ ##]
|
319
|
+
# [###]
|
320
|
+
# [## ]
|
321
|
+
class Chipped19 < Wall
|
322
|
+
register_type :chipped_19
|
323
|
+
register_sign ' '
|
324
|
+
walkable false
|
325
|
+
end
|
326
|
+
|
327
|
+
# [# #] [# ] [ #] [ ]
|
328
|
+
# [ ##] [ ##] [ ##] [ ##]
|
329
|
+
# [###] [###] [###] [###]
|
330
|
+
#
|
331
|
+
# [# #] [# ] [ #] [ ]
|
332
|
+
# [ ##] [ ##] [ ##] [ ##]
|
333
|
+
# [ ##] [ ##] [ ##] [ ##]
|
334
|
+
class Chipped24 < Wall
|
335
|
+
register_type :chipped_24
|
336
|
+
register_sign ' '
|
337
|
+
walkable false
|
338
|
+
end
|
339
|
+
|
340
|
+
# [# #] [# ] [ #] [ ]
|
341
|
+
# [## ] [## ] [## ] [## ]
|
342
|
+
# [###] [###] [###] [###]
|
343
|
+
#
|
344
|
+
# [# #] [# ] [ #] [ ]
|
345
|
+
# [## ] [## ] [## ] [## ]
|
346
|
+
# [## ] [## ] [## ] [## ]
|
347
|
+
class Chipped26 < Wall
|
348
|
+
register_type :chipped_26
|
349
|
+
register_sign ' '
|
350
|
+
walkable false
|
351
|
+
end
|
352
|
+
|
353
|
+
# [# #] [ #] [# ] [ ]
|
354
|
+
# [###] [###] [###] [###]
|
355
|
+
# [ ##] [ ##] [ ##] [ ##]
|
356
|
+
class Chipped27 < Wall
|
357
|
+
register_type :chipped_27
|
358
|
+
register_sign ' '
|
359
|
+
walkable false
|
360
|
+
end
|
361
|
+
|
362
|
+
# [# #] [ #] [# ] [ ]
|
363
|
+
# [###] [###] [###] [###]
|
364
|
+
# [# #] [# #] [# #] [# #]
|
365
|
+
#
|
366
|
+
# [# #] [ #] [# ] [ ]
|
367
|
+
# [###] [###] [###] [###]
|
368
|
+
# [# ] [# ] [# ] [# ]
|
369
|
+
#
|
370
|
+
# [# #] [ #] [# ] [ ]
|
371
|
+
# [###] [###] [###] [###]
|
372
|
+
# [ #] [ #] [ #] [ #]
|
373
|
+
#
|
374
|
+
# [# #] [ #] [# ] [ ]
|
375
|
+
# [###] [###] [###] [###]
|
376
|
+
# [ ] [ ] [ ] [ ]
|
377
|
+
class Chipped28 < Wall
|
378
|
+
register_type :chipped_28
|
379
|
+
register_sign ' '
|
380
|
+
walkable false
|
381
|
+
end
|
382
|
+
|
383
|
+
# [# #] [ #] [# ] [ ]
|
384
|
+
# [###] [###] [###] [###]
|
385
|
+
# [## ] [## ] [## ] [## ]
|
386
|
+
class Chipped29 < Wall
|
387
|
+
register_type :chipped_29
|
388
|
+
register_sign ' '
|
389
|
+
walkable false
|
390
|
+
end
|
391
|
+
|
392
|
+
# [## ] [ # ] [## ] [ # ]
|
393
|
+
# [ ##] [ ##] [ ##] [ ##]
|
394
|
+
# [###] [###] [ ##] [ ##]
|
395
|
+
class Chipped34 < Wall
|
396
|
+
register_type :chipped_34
|
397
|
+
register_sign ' '
|
398
|
+
walkable false
|
399
|
+
end
|
400
|
+
|
401
|
+
# [## ]
|
402
|
+
# [###]
|
403
|
+
# [ ##]
|
404
|
+
class Chipped37 < Wall
|
405
|
+
register_type :chipped_37
|
406
|
+
register_sign ' '
|
407
|
+
walkable false
|
408
|
+
end
|
409
|
+
|
410
|
+
# [## ] [## ] [## ] [## ]
|
411
|
+
# [###] [###] [###] [###]
|
412
|
+
# [# #] [ #] [# ] [ ]
|
413
|
+
class Chipped38 < Wall
|
414
|
+
register_type :chipped_38
|
415
|
+
register_sign ' '
|
416
|
+
walkable false
|
417
|
+
end
|
418
|
+
|
419
|
+
# [## ]
|
420
|
+
# [###]
|
421
|
+
# [## ]
|
422
|
+
class Chipped39 < Wall
|
423
|
+
register_type :chipped_39
|
424
|
+
register_sign ' '
|
425
|
+
walkable false
|
426
|
+
end
|
427
|
+
|
428
|
+
# [###] [ ##] [###] [ ##]
|
429
|
+
# [ # ] [ # ] [ # ] [ # ]
|
430
|
+
# [###] [###] [ ##] [ ##]
|
431
|
+
#
|
432
|
+
# [## ] [ # ] [## ] [ # ]
|
433
|
+
# [ # ] [ # ] [ # ] [ # ]
|
434
|
+
# [###] [###] [ ##] [ ##]
|
435
|
+
#
|
436
|
+
# [###] [ ##] [###] [ ##]
|
437
|
+
# [ # ] [ # ] [ # ] [ # ]
|
438
|
+
# [## ] [## ] [ # ] [ # ]
|
439
|
+
#
|
440
|
+
# [## ] [ # ] [## ] [ # ]
|
441
|
+
# [ # ] [ # ] [ # ] [ # ]
|
442
|
+
# [## ] [## ] [ # ] [ # ]
|
443
|
+
class Chipped46 < Wall
|
444
|
+
register_type :chipped_46
|
445
|
+
register_sign ' '
|
446
|
+
walkable false
|
447
|
+
end
|
448
|
+
|
449
|
+
# [###] [ ##] [###] [ ##]
|
450
|
+
# [ ##] [ ##] [ ##] [ ##]
|
451
|
+
# [# #] [# #] [ #] [ #]
|
452
|
+
#
|
453
|
+
# [###] [ ##] [###] [ ##]
|
454
|
+
# [ ##] [ ##] [ ##] [ ##]
|
455
|
+
# [# ] [# ] [ ] [ ]
|
456
|
+
class Chipped48 < Wall
|
457
|
+
register_type :chipped_48
|
458
|
+
register_sign ' '
|
459
|
+
walkable false
|
460
|
+
end
|
461
|
+
|
462
|
+
# [###] [ ##] [###] [ ##]
|
463
|
+
# [ ##] [ ##] [ ##] [ ##]
|
464
|
+
# [## ] [## ] [ # ] [ # ]
|
465
|
+
class Chipped49 < Wall
|
466
|
+
register_type :chipped_49
|
467
|
+
register_sign ' '
|
468
|
+
walkable false
|
469
|
+
end
|
470
|
+
|
471
|
+
# [###] [## ] [###] [## ]
|
472
|
+
# [## ] [## ] [## ] [## ]
|
473
|
+
# [ ##] [ ##] [ # ] [ # ]
|
474
|
+
class Chipped67 < Wall
|
475
|
+
register_type :chipped_67
|
476
|
+
register_sign ' '
|
477
|
+
walkable false
|
478
|
+
end
|
479
|
+
|
480
|
+
# [###] [## ] [###] [## ]
|
481
|
+
# [## ] [## ] [## ] [## ]
|
482
|
+
# [# #] [# #] [# ] [# ]
|
483
|
+
#
|
484
|
+
# [###] [## ] [###] [## ]
|
485
|
+
# [## ] [## ] [## ] [## ]
|
486
|
+
# [ #] [ #] [ ] [ ]
|
487
|
+
class Chipped68 < Wall
|
488
|
+
register_type :chipped_68
|
489
|
+
register_sign ' '
|
490
|
+
walkable false
|
491
|
+
end
|
492
|
+
|
493
|
+
# [###]
|
494
|
+
# [###]
|
495
|
+
# [ # ]
|
496
|
+
class Chipped79 < Wall
|
497
|
+
register_type :chipped_79
|
498
|
+
register_sign ' '
|
499
|
+
walkable false
|
500
|
+
end
|
501
|
+
|
502
|
+
# [ # ]
|
503
|
+
# [###]
|
504
|
+
# [ ##]
|
505
|
+
class Chipped137 < Wall
|
506
|
+
register_type :chipped_137
|
507
|
+
register_sign ' '
|
508
|
+
walkable false
|
509
|
+
end
|
510
|
+
|
511
|
+
# [ # ] [ # ] [ # ] [ # ]
|
512
|
+
# [###] [###] [###] [###]
|
513
|
+
# [# #] [ #] [# ] [ ]
|
514
|
+
class Chipped138 < Wall
|
515
|
+
register_type :chipped_138
|
516
|
+
register_sign ' '
|
517
|
+
walkable false
|
518
|
+
end
|
519
|
+
|
520
|
+
# [ # ]
|
521
|
+
# [###]
|
522
|
+
# [## ]
|
523
|
+
class Chipped139 < Wall
|
524
|
+
register_type :chipped_139
|
525
|
+
register_sign ' '
|
526
|
+
walkable false
|
527
|
+
end
|
528
|
+
|
529
|
+
# [ ##] [ # ] [ ##] [ # ]
|
530
|
+
# [## ] [## ] [## ] [## ]
|
531
|
+
# [ ##] [ ##] [ # ] [ # ]
|
532
|
+
class Chipped167 < Wall
|
533
|
+
register_type :chipped_167
|
534
|
+
register_sign ' '
|
535
|
+
walkable false
|
536
|
+
end
|
537
|
+
|
538
|
+
# [ ##] [ # ] [ ##] [ # ]
|
539
|
+
# [## ] [## ] [## ] [## ]
|
540
|
+
# [# #] [# #] [# ] [# ]
|
541
|
+
#
|
542
|
+
# [ ##] [ # ] [ ##] [ # ]
|
543
|
+
# [## ] [## ] [## ] [## ]
|
544
|
+
# [ #] [ #] [ ] [ ]
|
545
|
+
class Chipped168 < Wall
|
546
|
+
register_type :chipped_168
|
547
|
+
register_sign ' '
|
548
|
+
walkable false
|
549
|
+
end
|
550
|
+
|
551
|
+
# [ ##]
|
552
|
+
# [###]
|
553
|
+
# [ # ]
|
554
|
+
class Chipped179 < Wall
|
555
|
+
register_type :chipped_179
|
556
|
+
register_sign ' '
|
557
|
+
walkable false
|
558
|
+
end
|
559
|
+
|
560
|
+
# [# #] [ #] [# ] [ ]
|
561
|
+
# [ # ] [ # ] [ # ] [ # ]
|
562
|
+
# [###] [###] [###] [###]
|
563
|
+
#
|
564
|
+
# [# #] [ #] [# ] [ ]
|
565
|
+
# [ # ] [ # ] [ # ] [ # ]
|
566
|
+
# [ ##] [ ##] [ ##] [ ##]
|
567
|
+
#
|
568
|
+
# [# #] [ #] [# ] [ ]
|
569
|
+
# [ # ] [ # ] [ # ] [ # ]
|
570
|
+
# [## ] [## ] [## ] [## ]
|
571
|
+
#
|
572
|
+
# [# #] [ #] [# ] [ ]
|
573
|
+
# [ # ] [ # ] [ # ] [ # ]
|
574
|
+
# [ # ] [ # ] [ # ] [ # ]
|
575
|
+
class Chipped246 < Wall
|
576
|
+
register_type :chipped_246
|
577
|
+
register_sign ' '
|
578
|
+
walkable false
|
579
|
+
end
|
580
|
+
|
581
|
+
# [# #] [ #] [# ] [ ]
|
582
|
+
# [ ##] [ ##] [ ##] [ ##]
|
583
|
+
# [# #] [# #] [# #] [# #]
|
584
|
+
#
|
585
|
+
# [# #] [ #] [# ] [ ]
|
586
|
+
# [ ##] [ ##] [ ##] [ ##]
|
587
|
+
# [ #] [ #] [ #] [ #]
|
588
|
+
#
|
589
|
+
# [# #] [ #] [# ] [ ]
|
590
|
+
# [ ##] [ ##] [ ##] [ ##]
|
591
|
+
# [# ] [# ] [# ] [# ]
|
592
|
+
#
|
593
|
+
# [# #] [ #] [# ] [ ]
|
594
|
+
# [ ##] [ ##] [ ##] [ ##]
|
595
|
+
# [ ] [ ] [ ] [ ]
|
596
|
+
class Chipped248 < Wall
|
597
|
+
register_type :chipped_248
|
598
|
+
register_sign ' '
|
599
|
+
walkable false
|
600
|
+
end
|
601
|
+
|
602
|
+
# [# #] [ #] [# ] [ ]
|
603
|
+
# [ ##] [ ##] [ ##] [ ##]
|
604
|
+
# [## ] [## ] [## ] [## ]
|
605
|
+
#
|
606
|
+
# [# #] [ #] [# ] [ ]
|
607
|
+
# [ ##] [ ##] [ ##] [ ##]
|
608
|
+
# [ # ] [ # ] [ # ] [ # ]
|
609
|
+
class Chipped249 < Wall
|
610
|
+
register_type :chipped_249
|
611
|
+
register_sign ' '
|
612
|
+
walkable false
|
613
|
+
end
|
614
|
+
|
615
|
+
# [# #] [ #] [# ] [ ]
|
616
|
+
# [## ] [## ] [## ] [## ]
|
617
|
+
# [ ##] [ ##] [ ##] [ ##]
|
618
|
+
#
|
619
|
+
# [# #] [ #] [# ] [ ]
|
620
|
+
# [## ] [## ] [## ] [## ]
|
621
|
+
# [ # ] [ # ] [ # ] [ # ]
|
622
|
+
class Chipped267 < Wall
|
623
|
+
register_type :chipped_267
|
624
|
+
register_sign ' '
|
625
|
+
walkable false
|
626
|
+
end
|
627
|
+
|
628
|
+
# [# #] [ #] [# ] [ ]
|
629
|
+
# [## ] [## ] [## ] [## ]
|
630
|
+
# [# #] [# #] [# #] [# #]
|
631
|
+
#
|
632
|
+
# [# #] [ #] [# ] [ ]
|
633
|
+
# [## ] [## ] [## ] [## ]
|
634
|
+
# [ #] [ #] [ #] [ #]
|
635
|
+
#
|
636
|
+
# [# #] [ #] [# ] [ ]
|
637
|
+
# [## ] [## ] [## ] [## ]
|
638
|
+
# [# ] [# ] [# ] [# ]
|
639
|
+
#
|
640
|
+
# [# #] [ #] [# ] [ ]
|
641
|
+
# [## ] [## ] [## ] [## ]
|
642
|
+
# [ ] [ ] [ ] [ ]
|
643
|
+
class Chipped268 < Wall
|
644
|
+
register_type :chipped_268
|
645
|
+
register_sign ' '
|
646
|
+
walkable false
|
647
|
+
end
|
648
|
+
|
649
|
+
# [# #] [ #] [# ] [ ]
|
650
|
+
# [###] [###] [###] [###]
|
651
|
+
# [ # ] [ # ] [ # ] [ # ]
|
652
|
+
class Chipped279 < Wall
|
653
|
+
register_type :chipped_279
|
654
|
+
register_sign ' '
|
655
|
+
walkable false
|
656
|
+
end
|
657
|
+
|
658
|
+
# [## ] [ # ] [## ] [ # ]
|
659
|
+
# [ ##] [ ##] [ ##] [ ##]
|
660
|
+
# [# #] [# #] [ #] [ #]
|
661
|
+
#
|
662
|
+
# [## ] [ # ] [## ] [ # ]
|
663
|
+
# [ ##] [ ##] [ ##] [ ##]
|
664
|
+
# [# ] [# ] [ ] [ ]
|
665
|
+
class Chipped348 < Wall
|
666
|
+
register_type :chipped_348
|
667
|
+
register_sign ' '
|
668
|
+
walkable false
|
669
|
+
end
|
670
|
+
|
671
|
+
# [## ] [ # ] [## ] [ # ]
|
672
|
+
# [ ##] [ ##] [ ##] [ ##]
|
673
|
+
# [## ] [## ] [ # ] [ # ]
|
674
|
+
class Chipped349 < Wall
|
675
|
+
register_type :chipped_349
|
676
|
+
register_sign ' '
|
677
|
+
walkable false
|
678
|
+
end
|
679
|
+
|
680
|
+
# [## ]
|
681
|
+
# [###]
|
682
|
+
# [ # ]
|
683
|
+
class Chipped379 < Wall
|
684
|
+
register_type :chipped_379
|
685
|
+
register_sign ' '
|
686
|
+
walkable false
|
687
|
+
end
|
688
|
+
|
689
|
+
# [###] [ ##] [###] [ ##]
|
690
|
+
# [ # ] [ # ] [ # ] [ # ]
|
691
|
+
# [# #] [# #] [ #] [ #]
|
692
|
+
#
|
693
|
+
# [## ] [ # ] [## ] [ # ]
|
694
|
+
# [ # ] [ # ] [ # ] [ # ]
|
695
|
+
# [# #] [# #] [ #] [ #]
|
696
|
+
#
|
697
|
+
# [###] [ ##] [###] [ ##]
|
698
|
+
# [ # ] [ # ] [ # ] [ # ]
|
699
|
+
# [# ] [# ] [ ] [ ]
|
700
|
+
#
|
701
|
+
# [## ] [ # ] [## ] [ # ]
|
702
|
+
# [ # ] [ # ] [ # ] [ # ]
|
703
|
+
# [# ] [# ] [ ] [ ]
|
704
|
+
class Chipped468 < Wall
|
705
|
+
register_type :chipped_468
|
706
|
+
register_sign ' '
|
707
|
+
walkable false
|
708
|
+
end
|
709
|
+
|
710
|
+
# [ # ]
|
711
|
+
# [###]
|
712
|
+
# [ # ]
|
713
|
+
class Chipped1379 < Wall
|
714
|
+
register_type :chipped_1379
|
715
|
+
register_sign ' '
|
716
|
+
walkable false
|
717
|
+
end
|
718
|
+
|
719
|
+
# [# #] [ #] [# ] [ ]
|
720
|
+
# [ # ] [ # ] [ # ] [ # ]
|
721
|
+
# [# #] [# #] [# #] [# #]
|
722
|
+
#
|
723
|
+
# [# #] [ #] [# ] [ ]
|
724
|
+
# [ # ] [ # ] [ # ] [ # ]
|
725
|
+
# [ #] [ #] [ #] [ #]
|
726
|
+
#
|
727
|
+
# [# #] [ #] [# ] [ ]
|
728
|
+
# [ # ] [ # ] [ # ] [ # ]
|
729
|
+
# [# ] [# ] [# ] [# ]
|
730
|
+
#
|
731
|
+
# [# #] [ #] [# ] [ ]
|
732
|
+
# [ # ] [ # ] [ # ] [ # ]
|
733
|
+
# [ ] [ ] [ ] [ ]
|
734
|
+
class Chipped2468 < Wall
|
735
|
+
register_type :chipped_2468
|
736
|
+
register_sign ' '
|
737
|
+
walkable false
|
738
|
+
end
|
739
|
+
|
740
|
+
###### ここまでdetailed Tile #####################################
|
741
|
+
|
742
|
+
DEFAULT_TILE_CLASS = {
|
743
|
+
wall: Wall,
|
744
|
+
flat: Flat,
|
745
|
+
gate: Gate,
|
746
|
+
passage: Passage,
|
747
|
+
binary_wall: BinaryWall,
|
748
|
+
|
749
|
+
# for rogue_like
|
750
|
+
l_wall: LWall,
|
751
|
+
r_wall: RWall,
|
752
|
+
t_wall: TWall,
|
753
|
+
b_wall: BWall,
|
754
|
+
|
755
|
+
# for detail
|
756
|
+
chipped_1: Chipped1,
|
757
|
+
chipped_2: Chipped2,
|
758
|
+
chipped_3: Chipped3,
|
759
|
+
chipped_4: Chipped4,
|
760
|
+
chipped_6: Chipped6,
|
761
|
+
chipped_7: Chipped7,
|
762
|
+
chipped_8: Chipped8,
|
763
|
+
chipped_9: Chipped9,
|
764
|
+
chipped_13: Chipped13,
|
765
|
+
chipped_16: Chipped16,
|
766
|
+
chipped_17: Chipped17,
|
767
|
+
chipped_18: Chipped18,
|
768
|
+
chipped_19: Chipped19,
|
769
|
+
chipped_24: Chipped24,
|
770
|
+
chipped_26: Chipped26,
|
771
|
+
chipped_27: Chipped27,
|
772
|
+
chipped_28: Chipped28,
|
773
|
+
chipped_29: Chipped29,
|
774
|
+
chipped_34: Chipped34,
|
775
|
+
chipped_37: Chipped37,
|
776
|
+
chipped_38: Chipped38,
|
777
|
+
chipped_39: Chipped39,
|
778
|
+
chipped_46: Chipped46,
|
779
|
+
chipped_48: Chipped48,
|
780
|
+
chipped_49: Chipped49,
|
781
|
+
chipped_67: Chipped67,
|
782
|
+
chipped_68: Chipped68,
|
783
|
+
chipped_79: Chipped79,
|
784
|
+
chipped_137: Chipped137,
|
785
|
+
chipped_138: Chipped138,
|
786
|
+
chipped_139: Chipped139,
|
787
|
+
chipped_167: Chipped167,
|
788
|
+
chipped_168: Chipped168,
|
789
|
+
chipped_179: Chipped179,
|
790
|
+
chipped_246: Chipped246,
|
791
|
+
chipped_248: Chipped248,
|
792
|
+
chipped_249: Chipped249,
|
793
|
+
chipped_267: Chipped267,
|
794
|
+
chipped_268: Chipped268,
|
795
|
+
chipped_279: Chipped279,
|
796
|
+
chipped_348: Chipped348,
|
797
|
+
chipped_349: Chipped349,
|
798
|
+
chipped_379: Chipped379,
|
799
|
+
chipped_468: Chipped468,
|
800
|
+
chipped_1379: Chipped1379,
|
801
|
+
chipped_2468: Chipped2468,
|
802
|
+
}
|
803
|
+
|
804
|
+
TileManager.set_tile_class(DEFAULT_TILE_CLASS)
|
805
|
+
end
|
806
|
+
end
|