File: level_api_constants.tex

package info (click to toggle)
enigma 1.30%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 76,132 kB
  • sloc: xml: 162,251; cpp: 67,393; ansic: 28,606; makefile: 1,986; sh: 1,298; yacc: 288; perl: 84; sed: 16
file content (231 lines) | stat: -rw-r--r-- 8,208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
\documentclass[10pt,landscape]{article}
\usepackage{multicol}
\usepackage{calc}
\usepackage{ifthen}
\usepackage[landscape]{geometry}

\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm}
\pagestyle{empty}

% Redefine section commands to use less space
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0mm}%
                                {-1ex plus -.5ex minus -.2ex}%
                                {0.5ex plus .2ex}%
                                {\normalfont\large\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}%
                                {-1explus -.5ex minus -.2ex}%
                                {0.5ex plus .2ex}%
                                {\normalfont\normalsize\bfseries}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}%
                                {-1ex plus -.5ex minus -.2ex}%
                                {1ex plus .2ex}%
                                {\normalfont\small\bfseries}}
\makeatother

\begin{document}

\raggedright
\footnotesize
\begin{multicols}{3}
\setlength{\premulticols}{1pt}
\setlength{\postmulticols}{1pt}
\setlength{\multicolsep}{1pt}
\setlength{\columnsep}{1pt}

\begin{center}
\Large{\textbf{Enigma Level API II}} \\
\large{\textbf{API constants}}
\end{center}

\begin{center}
\rule{0.6\linewidth}{0.25pt}
\end{center}

\section*{Common Constants}

\subsection*{state values}
\begin{tabular}{ll}
\verb!OFF! & all switch like objects \\
\verb!ON! & all switch like objects \\
\verb!CLOSED! & all door like objects \\
\verb!OPEN! & all door like objects \\
\verb!IDLE! & other objects in the default passive state \\
\verb!ACTIVE! & other objects in the active state \\
\verb!INACTIVE! & other objects in the inactive state \\
\verb!OXYDPAIR! & just by \texttt{st\_oxyd} \\
\verb!LIGHT! & by \texttt{st\_disco} \\
\verb!MEDIUM! & by \texttt{st\_disco}, \texttt{it\_crack}, \texttt{it\_extinguisher} \\
\verb!DARK! & by \texttt{st\_disco} \\
\verb!FLOODING! & by \texttt{fl\_water}, \texttt{fl\_wood}, \texttt{fl\_hay}, \texttt{fl\_rock} \\
\verb!INVISIBLE! & by \texttt{it\_crack} \\
\verb!SMALL! & by \texttt{it\_crack} \\
\verb!LARGE! & by \texttt{it\_crack} \\
\verb!YIN! & by \texttt{fl\_yinyang} \\
\verb!YANG! & by \texttt{fl\_yinyang} \\
\verb!EMPTY! & by \texttt{it\_extinguisher} \\
\verb!FULL! &  by \texttt{it\_extinguisher} \\
\verb!BROKEN! &  by \texttt{it\_bottle} \\
\verb!BREAKING! &  by \texttt{st\_quake} \\
\verb!CW! &  clockwise, by \texttt{st\_rotator} \\
\verb!CCW! & counterclockwise, by \texttt{st\_rotator}
\end{tabular}

\subsection*{color values}
\begin{tabular}{ll}
\verb!BLACK! & all black/white colored objects \\
\verb!WHITE! & all black/white colored objects \\
\verb!BLUE! & by \texttt{st\_puzzle} \\
\verb!YELLOW! & by \texttt{st\_puzzle} \\
\verb!NOCOLOR! & some objects, that exist in black, \\
                & white variants, too, like \texttt{st\_switch}
\end{tabular}

\subsection*{actor controllers}
\begin{tabular}{ll}
\verb!CTRL_NONE! &  by all actors \\
\verb!CTRL_YIN! &  by all actors \\
\verb!CTRL_YANG! &  by all actors \\
\verb!CTRL_YINYANG! &  by all actors
\end{tabular}

\subsection*{oxyd colors}
\begin{tabular}{ll}
\verb!OXYD_BLUE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_RED! &  by \texttt{st\_oxyd} \\
\verb!OXYD_GREEN! &  by \texttt{st\_oxyd} \\
\verb!OXYD_YELLOW! &  by \texttt{st\_oxyd} \\
\verb!OXYD_CYAN! &  by \texttt{st\_oxyd} \\
\verb!OXYD_PURPLE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_WHITE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_BLACK! &  by \texttt{st\_oxyd} \\
\verb!OXYD_GRAY! &  by \texttt{st\_oxyd} \\
\verb!OXYD_ORANGE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_PINE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_BROWN! &  by \texttt{st\_oxyd} \\
\verb!OXYD_AUTO! &  by \texttt{st\_oxyd} \\
\verb!OXYD_FAKE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_QUAKE! &  by \texttt{st\_oxyd} \\
\verb!OXYD_BOLD! &  by \texttt{st\_oxyd}
\end{tabular}

\subsection*{orientations}
\begin{tabular}{ll}
\verb!RANDOMDIR! & by \texttt{st\_mirror} \\
\verb!NODIR! & by \texttt{fl\_slope} \\
\verb!WEST! & by all objects with 4 orientations \\
\verb!SOUTH! & by all objects with 4 orientations \\
\verb!EAST! & by all objects with 4 orientations \\
\verb!NORTH! & by all objects with 4 orientations \\
\verb!NORTHWEST! & by all objects with 8 orientations \\
\verb!SOUTHWEST! & by all objects with 8 orientations \\
\verb!SOUTHEAST! & by all objects with 8 orientations \\
\verb!NORTHEAST! & by all objects with 8 orientations \\
\verb!BACKSLASH! & by \texttt{st\_mirror} \\
\verb!HORIZONTAL! & by \texttt{st\_mirror} \\
\verb!SLASH! & by \texttt{st\_mirror} \\
\verb!VERTICAL! & by \texttt{st\_mirror} \\
\end{tabular}

\subsection*{direction offsets}
\begin{tabular}{ll}
\verb!N = po(0, -1)! &  \\
\verb!E = po(1, 0)! &  \\
\verb!S = po(0, 1)! &  \\
\verb!W = po(-1, 0)! &  \\
\verb!NE = N + E! &  \\
\verb!NW = N + W! &  \\
\verb!SE = S + E! &  \\
\verb!SW = S + W! &  \\
\verb!NNE = N + NE! & by \texttt{st\_chess} \\
\verb!ENE = E + NE! & by \texttt{st\_chess} \\
\verb!ESE = E + SE! & by \texttt{st\_chess} \\
\verb!SSE =  S + SE! & by \texttt{st\_chess} \\
\verb!SSW =  S + SW! & by \texttt{st\_chess} \\
\verb!WSW =  W + SW! & by \texttt{st\_chess} \\
\verb!WNW =  W + NW! & by \texttt{st\_chess} \\
\verb!NNW =  N + NW! & by \texttt{st\_chess}
\end{tabular}

\subsection*{position lists}
\begin{tabular}{ll}
\verb!NEIGHBORS_4 = W .. S .. E .. N! & \\
\verb!NEIGHBORS_8 = NEIGHBORS_4 .. NW .. SW ..SE .. NE! & \\
\verb!NEIGHBORS_CHESS = NNE .. ENE .. ESE .. SSE! & \\
\verb! .. SSW .. WSW .. WNW .. NNW!
\end{tabular}

\subsection*{essentialness}
\begin{tabular}{ll}
\verb!DISPENSABLE! & by all actors and \texttt{it\_meditation} \\
\verb!INDISPENSABLE! & by all actors and Section \texttt{it\_meditation} \\
\verb!PERKIND! & by all actors
\end{tabular}

\subsection*{meditation types}
\begin{tabular}{ll}
\verb!MEDITATION_CALDERA! & by \texttt{it\_meditation} \\
\verb!MEDITATION_HOLLOW! & by \texttt{it\_meditation} \\
\verb!MEDITATION_DENT! & by \texttt{it\_meditation} \\
\verb!MEDITATION_BUMP! & by \texttt{it\_meditation} \\
\verb!MEDITATION_HILL! & by \texttt{it\_meditation} \\
\verb!MEDITATION_VOLCANO! & by \texttt{it\_meditation}
\end{tabular}

\subsection*{glasses abilities}
\begin{tabular}{ll}
\verb!SPOT_NOTHING! & by \texttt{it\_glasses} \\
\verb!SPOT_DEATH! & by \texttt{it\_glasses} \\
\verb!SPOT_HOLLOW! & by \texttt{it\_glasses} \\
\verb!SPOT_ACTORIMPULSE! & by \texttt{it\_glasses} \\
\verb!SPOT_SENSOR! & by \texttt{it\_glasses} \\
\verb!SPOT_LIGHTPASSENGER! & by \texttt{it\_glasses} \\
\verb!SPOT_TRAP! & by \texttt{it\_glasses}
\end{tabular}

\subsection*{coinslot acceptance}
\begin{tabular}{ll}
\verb!COIN_IGNORE! & by \texttt{st\_coinslot} \\
\verb!COIN_REJECT! & by \texttt{st\_coinslot}
\end{tabular}

\subsection*{rubberband length}
\begin{tabular}{ll}
\verb!AUTOLENGTH! & by \texttt{it\_rubberband} \texttt{ot\_rubberband} \texttt{st\_rubberband} \\
\end{tabular}

\subsection*{subsoil kind}
\begin{tabular}{ll}
\verb!SUBSOIL_ABYSS! & by \texttt{it\_explosion} \\
\verb!SUBSOIL_WATER! & by \texttt{it\_explosion} \\
\verb!SUBSOIL_AUTO! & by \texttt{it\_explosion}
\end{tabular}

\subsection*{screen scrolling}
\begin{tabular}{ll}
\verb!FOLLOW_NO! & by global \texttt{FollowMethod} \\
\verb!FOLLOW_SCROLL! & by global \texttt{FollowMethod} \\
\verb!FOLLOW_FLIP! & by global \texttt{FollowMethod} \\
\verb!FOLLOW_FULLSCREEN = po(19, 12)! & by global \texttt{FollowAction} \\
\verb!FOLLOW_HALFSCREEN = po(9.5, 6)! & by global \texttt{FollowAction}
\end{tabular}

\subsection*{map read directions}
\begin{tabular}{ll}
\verb!MAP_IDENT! & no transformation \\
\verb!MAP_ROT_CW! & rotate map 90 degrees clockwise \\
\verb!MAP_ROT_180! & rotate map 180 degrees \\
\verb!MAP_ROT_CCW! & rotate map 90 degrees counter-clockwise \\
\verb!MAP_FLIP_BACKSLASH! & flip upper-left and lower-right corners \\
\verb!MAP_FLIP_HORIZONTAL! & flip right and left \\
\verb!MAP_FLIP_SLASH! & flip upper-right and lower-left corners \\
\verb!MAP_FLIP_VERTICAL! & flip up and down
\end{tabular}

\begin{center}
\rule{0.6\linewidth}{0.25pt} \\
Compiled from Enigma 1.21 reference manual by Raoul
\end{center}

\end{multicols}
\end{document}