Module: TCOD

Extended by:
FFI::Library
Defined in:
lib/libtcod/map.rb,
lib/libtcod/consts.rb,
lib/libtcod/system.rb,
lib/libtcod/struct.rb,
lib/libtcod/console.rb,
lib/libtcod/version.rb,
lib/libtcod/bindings.rb,
lib/libtcod/color_consts.rb

Defined Under Namespace

Modules: System Classes: BresenhamData, Color, Console, Dice, Key, Map, MethodStruct, MethodUnion, Mouse, Path, TCODBspT, TCODHeightmapT, TCODParserIntT, TCODParserListenerT, TCODStructIntT, TCODTreeT, TCODValueT

Constant Summary collapse

BKGND_NONE =

background rendering modes

0
BKGND_SET =
1
BKGND_MULTIPLY =
2
BKGND_LIGHTEN =
3
BKGND_DARKEN =
4
BKGND_SCREEN =
5
BKGND_COLOR_DODGE =
6
BKGND_COLOR_BURN =
7
BKGND_ADD =
8
BKGND_ADDA =
9
BKGND_BURN =
10
BKGND_OVERLAY =
11
BKGND_ALPH =
12
BKGND_DEFAULT =
13
KEY_PRESSED =

non blocking key events types

1
KEY_RELEASED =
2
KEY_NONE =

key codes

0
KEY_ESCAPE =
1
KEY_BACKSPACE =
2
KEY_TAB =
3
KEY_ENTER =
4
KEY_SHIFT =
5
KEY_CONTROL =
6
KEY_ALT =
7
KEY_PAUSE =
8
KEY_CAPSLOCK =
9
KEY_PAGEUP =
10
KEY_PAGEDOWN =
11
KEY_END =
12
KEY_HOME =
13
KEY_UP =
14
KEY_LEFT =
15
KEY_RIGHT =
16
KEY_DOWN =
17
KEY_PRINTSCREEN =
18
KEY_INSERT =
19
KEY_DELETE =
20
KEY_LWIN =
21
KEY_RWIN =
22
KEY_APPS =
23
KEY_0 =
24
KEY_1 =
25
KEY_2 =
26
KEY_3 =
27
KEY_4 =
28
KEY_5 =
29
KEY_6 =
30
KEY_7 =
31
KEY_8 =
32
KEY_9 =
33
KEY_KP0 =
34
KEY_KP1 =
35
KEY_KP2 =
36
KEY_KP3 =
37
KEY_KP4 =
38
KEY_KP5 =
39
KEY_KP6 =
40
KEY_KP7 =
41
KEY_KP8 =
42
KEY_KP9 =
43
KEY_KPADD =
44
KEY_KPSUB =
45
KEY_KPDIV =
46
KEY_KPMUL =
47
KEY_KPDEC =
48
KEY_KPENTER =
49
KEY_F1 =
50
KEY_F2 =
51
KEY_F3 =
52
KEY_F4 =
53
KEY_F5 =
54
KEY_F6 =
55
KEY_F7 =
56
KEY_F8 =
57
KEY_F9 =
58
KEY_F10 =
59
KEY_F11 =
60
KEY_F12 =
61
KEY_NUMLOCK =
62
KEY_SCROLLLOCK =
63
KEY_SPACE =
64
KEY_CHAR =
65
CHAR_HLINE =

single walls

196
CHAR_VLINE =
179
CHAR_NE =
191
CHAR_NW =
218
CHAR_SE =
217
CHAR_SW =
192
CHAR_TEEW =
180
CHAR_TEEE =
195
CHAR_TEEN =
193
CHAR_TEES =
194
CHAR_CROSS =
197
CHAR_DHLINE =

double walls

205
CHAR_DVLINE =
186
CHAR_DNE =
187
CHAR_DNW =
201
CHAR_DSE =
188
CHAR_DSW =
200
CHAR_DTEEW =
185
CHAR_DTEEE =
204
CHAR_DTEEN =
202
CHAR_DTEES =
203
CHAR_DCROSS =
206
CHAR_BLOCK1 =

blocks

176
CHAR_BLOCK2 =
177
CHAR_BLOCK3 =
178
CHAR_ARROW_N =

arrows

24
CHAR_ARROW_S =
25
CHAR_ARROW_E =
26
CHAR_ARROW_W =
27
CHAR_ARROW2_N =

arrows without tail

30
CHAR_ARROW2_S =
31
CHAR_ARROW2_E =
16
CHAR_ARROW2_W =
17
CHAR_DARROW_H =

double arrows

29
CHAR_DARROW_V =
18
CHAR_CHECKBOX_UNSET =

GUI stuff

224
CHAR_CHECKBOX_SET =
225
CHAR_RADIO_UNSET =
9
CHAR_RADIO_SET =
10
CHAR_SUBP_NW =

sub-pixel resolution kit

226
CHAR_SUBP_NE =
227
CHAR_SUBP_N =
228
CHAR_SUBP_SE =
229
CHAR_SUBP_DIAG =
230
CHAR_SUBP_E =
231
CHAR_SUBP_SW =
232
CHAR_BULLET =

misc characters

7
CHAR_BULLET_INV =
8
CHAR_BULLET_SQUARE =
254
CHAR_CENT =
189
CHAR_CLUB =
5
184
CHAR_CURRENCY =
207
CHAR_DIAMOND =
4
CHAR_DIVISION =
246
CHAR_EXCLAM_DOUBLE =
19
CHAR_FEMALE =
12
CHAR_FUNCTION =
159
CHAR_GRADE =
248
CHAR_HALF =
171
CHAR_HEART =
3
CHAR_LIGHT =
15
CHAR_MALE =
11
CHAR_MULTIPLICATION =
158
CHAR_NOTE =
13
CHAR_NOTE_DOUBLE =
14
CHAR_ONE_QUARTER =
172
CHAR_PILCROW =
20
CHAR_POUND =
156
CHAR_POW1 =
251
CHAR_POW2 =
253
CHAR_POW3 =
252
CHAR_RESERVED =
169
CHAR_SECTION =
21
CHAR_SMILIE =
1
CHAR_SMILIE_INV =
2
CHAR_SPADE =
6
CHAR_THREE_QUARTERS =
243
CHAR_UMLAUT =
249
CHAR_YEN =
190
FONT_LAYOUT_ASCII_INCOL =

font flags

1
FONT_LAYOUT_ASCII_INROW =
2
FONT_TYPE_GREYSCALE =
4
FONT_TYPE_GRAYSCALE =
4
FONT_LAYOUT_TCOD =
8
COLCTRL_1 =

color control codes

1
COLCTRL_2 =
2
COLCTRL_3 =
3
COLCTRL_4 =
4
COLCTRL_5 =
5
COLCTRL_NUMBER =
5
COLCTRL_FORE_RGB =
6
COLCTRL_BACK_RGB =
7
COLCTRL_STOP =
8
RENDERER_GLSL =

renderers

0
RENDERER_OPENGL =
1
RENDERER_SDL =
2
NB_RENDERERS =
3
LEFT =

alignment

0
RIGHT =
1
CENTER =
2
VERSION =
"0.1.1"
TCOD_renderer_t =
:int
TCOD_bkgnd_flag_t =
:int
TCOD_alignment_t =
:int
TCOD_keycode_t =
:int
TCOD_colctrl_t =
:int
TCOD_console_t =
:pointer
EVENT_KEY_PRESS =

System module

1
EVENT_MOUSE_RELEASE =
16
EVENT_KEY_RELEASE =
2
EVENT_MOUSE_MOVE =
4
EVENT_MOUSE_PRESS =
8
EVENT_MOUSE =
EVENT_MOUSE_MOVE|EVENT_MOUSE_PRESS|EVENT_MOUSE_RELEASE
EVENT_KEY =
EVENT_KEY_PRESS|EVENT_KEY_RELEASE
EVENT_ANY =
EVENT_KEY|EVENT_MOUSE
TCOD_image_t =
:pointer
TCOD_list_t =
:pointer
TYPE_NONE =

Parser module

0
TYPE_BOOL =
1
TYPE_VALUELIST02 =
10
TYPE_LIST =
1024
TYPE_VALUELIST03 =
11
TYPE_VALUELIST04 =
12
TYPE_VALUELIST05 =
13
TYPE_VALUELIST06 =
14
TYPE_VALUELIST07 =
15
TYPE_VALUELIST08 =
16
TYPE_VALUELIST09 =
17
TYPE_VALUELIST10 =
18
TYPE_VALUELIST11 =
19
TYPE_CHAR =
2
TYPE_VALUELIST12 =
20
TYPE_VALUELIST13 =
21
TYPE_VALUELIST14 =
22
TYPE_VALUELIST15 =
23
TYPE_CUSTOM00 =
24
TYPE_CUSTOM01 =
25
TYPE_CUSTOM02 =
26
TYPE_CUSTOM03 =
27
TYPE_CUSTOM04 =
28
TYPE_CUSTOM05 =
29
TYPE_INT =
3
TYPE_CUSTOM06 =
30
TYPE_CUSTOM07 =
31
TYPE_CUSTOM08 =
32
TYPE_CUSTOM09 =
33
TYPE_CUSTOM10 =
34
TYPE_CUSTOM11 =
35
TYPE_CUSTOM12 =
36
TYPE_CUSTOM13 =
37
TYPE_CUSTOM14 =
38
TYPE_CUSTOM15 =
39
TYPE_FLOAT =
4
TYPE_STRING =
5
TYPE_COLOR =
6
TYPE_DICE =
7
TYPE_VALUELIST00 =
8
TYPE_VALUELIST01 =
9
RNG_MT =

Random module

0
RNG_CMWC =
1
DISTRIBUTION_LINEAR =
0
DISTRIBUTION_GAUSSIAN =
1
DISTRIBUTION_GAUSSIAN_RANGE =
2
DISTRIBUTION_GAUSSIAN_INVERSE =
3
DISTRIBUTION_GAUSSIAN_RANGE_INVERSE =
4
TCOD_random_algo_t =
:int
TCOD_distribution_t =
:int
TCOD_random_t =
:pointer
NOISE_DEFAULT_HURST =

Noise module

0.5
NOISE_DEFAULT_LACUNARITY =
2.0
NOISE_DEFAULT =
0
NOISE_PERLIN =
1
NOISE_SIMPLEX =
2
NOISE_WAVELET =
4
FOV_BASIC =

FOV module

0
FOV_DIAMOND =
1
FOV_SHADOW =
2
FOV_PERMISSIVE_0 =
3
FOV_PERMISSIVE_1 =
4
FOV_PERMISSIVE_2 =
5
FOV_PERMISSIVE_3 =
6
FOV_PERMISSIVE_4 =
7
FOV_PERMISSIVE_5 =
8
FOV_PERMISSIVE_6 =
9
FOV_PERMISSIVE_7 =
10
FOV_PERMISSIVE_8 =
11
FOV_RESTRICTIVE =
12
NB_FOV_ALGORITHMS =
13
TCOD_fov_algorithm_t =
:int
TCOD_map_t =

Pathfinding module

:pointer
TCOD_noise_t =
:pointer

Class Method Summary collapse

Class Method Details

.tcod_function(sym, *args) ⇒ Object

Remove redundant namespacing



26
27
28
# File 'lib/libtcod/bindings.rb', line 26

def self.tcod_function(sym, *args)
  attach_function(sym[5..-1].to_sym, sym, *args)
end