line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::Rezrov::ZConst; |
2
|
|
|
|
|
|
|
# constants |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use constant ASCII_DEL => 0x7f; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
85
|
|
7
|
1
|
|
|
1
|
|
6
|
use constant ASCII_BS => 0x08; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
8
|
1
|
|
|
1
|
|
5
|
use constant ASCII_LF => 0x0a; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
9
|
1
|
|
|
1
|
|
5
|
use constant ASCII_CR => 0x0d; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
10
|
1
|
|
|
1
|
|
5
|
use constant ASCII_SPACE => 0x20; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
54
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
6
|
use constant LOWER_WIN => 0; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
68
|
|
13
|
1
|
|
|
1
|
|
4
|
use constant UPPER_WIN => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
4
|
use constant STYLE_ROMAN => 0; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
16
|
1
|
|
|
1
|
|
5
|
use constant STYLE_REVERSE => 1; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
52
|
|
17
|
1
|
|
|
1
|
|
4
|
use constant STYLE_BOLD => 2; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
18
|
1
|
|
|
1
|
|
6
|
use constant STYLE_ITALIC => 4; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
19
|
1
|
|
|
1
|
|
5
|
use constant STYLE_FIXED => 8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
59
|
|
20
|
|
|
|
|
|
|
# sect15.html#set_text_style |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
|
7
|
use constant STREAM_SCREEN => 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
23
|
|
|
|
|
|
|
# 7.1.1 |
24
|
1
|
|
|
1
|
|
5
|
use constant STREAM_TRANSCRIPT => 2; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
60
|
|
25
|
1
|
|
|
1
|
|
5
|
use constant STREAM_REDIRECT => 3; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
26
|
|
|
|
|
|
|
# 7.1.2.1 |
27
|
1
|
|
|
1
|
|
5
|
use constant STREAM_COMMANDS => 4; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
28
|
|
|
|
|
|
|
# 7.1.2.3 |
29
|
1
|
|
|
1
|
|
4
|
use constant STREAM_STEAL => 5; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
30
|
|
|
|
|
|
|
# local: when redirecting screen output; when active send |
31
|
|
|
|
|
|
|
# output here instead of to screen |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
|
5
|
use constant INPUT_KEYBOARD => 0; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
34
|
1
|
|
|
1
|
|
5
|
use constant INPUT_FILE => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
43
|
|
35
|
|
|
|
|
|
|
# 10.2 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# 3.8, table 2: |
38
|
1
|
|
|
1
|
|
5
|
use constant Z_NEWLINE => 13; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
39
|
1
|
|
|
1
|
|
4
|
use constant Z_DELETE => 8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
58
|
|
40
|
1
|
|
|
1
|
|
5
|
use constant Z_UP => 129; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
46
|
|
41
|
1
|
|
|
1
|
|
5
|
use constant Z_DOWN => 130; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
42
|
1
|
|
|
1
|
|
6
|
use constant Z_LEFT => 131; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
43
|
1
|
|
|
1
|
|
8
|
use constant Z_RIGHT => 132; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# 8.3.1: |
46
|
1
|
|
|
1
|
|
5
|
use constant COLOR_CURRENT => 0; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
43
|
|
47
|
1
|
|
|
1
|
|
5
|
use constant COLOR_DEFAULT => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
38
|
|
48
|
|
|
|
|
|
|
|
49
|
1
|
|
|
1
|
|
5
|
use constant COLOR_BLACK => 2; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
50
|
1
|
|
|
1
|
|
5
|
use constant COLOR_RED => 3; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
51
|
1
|
|
|
1
|
|
5
|
use constant COLOR_GREEN => 4; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
59
|
|
52
|
1
|
|
|
1
|
|
5
|
use constant COLOR_YELLOW => 5; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
72
|
|
53
|
1
|
|
|
1
|
|
6
|
use constant COLOR_BLUE => 6; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
54
|
1
|
|
|
1
|
|
5
|
use constant COLOR_MAGENTA => 7; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
55
|
1
|
|
|
1
|
|
6
|
use constant COLOR_CYAN => 8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
56
|
1
|
|
|
1
|
|
4
|
use constant COLOR_WHITE => 9; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# 8.1.2: |
59
|
1
|
|
|
1
|
|
4
|
use constant FONT_NORMAL => 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
60
|
1
|
|
|
1
|
|
10
|
use constant FONT_PICTURE => 2; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
61
|
1
|
|
|
1
|
|
4
|
use constant FONT_CHAR_GRAPHICS => 3; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
62
|
1
|
|
|
1
|
|
5
|
use constant FONT_FIXED => 4; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
165
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
my %COLOR_MAP = (COLOR_BLACK() => "black", |
65
|
|
|
|
|
|
|
COLOR_RED() => "red", |
66
|
|
|
|
|
|
|
COLOR_GREEN() => "green", |
67
|
|
|
|
|
|
|
COLOR_YELLOW() => "yellow", |
68
|
|
|
|
|
|
|
COLOR_BLUE() => "blue", |
69
|
|
|
|
|
|
|
COLOR_MAGENTA() => "magenta", |
70
|
|
|
|
|
|
|
COLOR_CYAN() => "cyan", |
71
|
|
|
|
|
|
|
COLOR_WHITE() => "white"); |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
sub color_code_to_name { |
74
|
0
|
|
0
|
0
|
0
|
|
return $COLOR_MAP{$_[0]} || undef; |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |