|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console_init_root(w,
h,
title,
fullscreen=False) |
source code
|
|
|
console_set_custom_font(fontFile,
flags=1,
nb_char_horiz=0,
nb_char_vertic=0) |
source code
|
|
|
console_map_ascii_code_to_font(asciiCode,
fontCharX,
fontCharY) |
source code
|
|
|
console_map_ascii_codes_to_font(firstAsciiCode,
nbCodes,
fontCharX,
fontCharY) |
source code
|
|
|
console_map_string_to_font(s,
fontCharX,
fontCharY) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console_put_char_ex(con,
x,
y,
c,
fore,
back) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console_print_left_rect(con,
x,
y,
w,
h,
bk,
s) |
source code
|
|
|
console_print_right_rect(con,
x,
y,
w,
h,
bk,
s) |
source code
|
|
|
console_print_center_rect(con,
x,
y,
w,
h,
bk,
s) |
source code
|
|
|
console_height_left_rect(con,
x,
y,
w,
h,
s) |
source code
|
|
|
console_height_right_rect(con,
x,
y,
w,
h,
s) |
source code
|
|
|
console_height_center_rect(con,
x,
y,
w,
h,
s) |
source code
|
|
|
|
|
|
|
|
|
console_print_frame(con,
x,
y,
w,
h,
clr,
bkflg,
s) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console_set_keyboard_repeat(initial_delay,
interval) |
source code
|
|
|
|
|
|
|
|
|
|
|
console_blit(src,
x,
y,
w,
h,
dst,
xdst,
ydst,
ffade=1.0,
bfade=1.0) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sys_force_fullscreen_resolution(width,
height) |
source code
|
|
|
|
|
|
|
sys_update_char(asciiCode,
fontx,
fonty,
img,
x,
y) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
image_get_mipmap_pixel(image,
x0,
y0,
x1,
y1) |
source code
|
|
|
|
|
image_blit(image,
console,
x,
y,
bkgnd_flag,
scalex,
scaley,
angle) |
source code
|
|
|
image_blit_rect(image,
console,
x,
y,
w,
h,
bkgnd_flag) |
source code
|
|
|
image_blit_2x(image,
console,
dx,
dy,
sx=0,
sy=0,
w=-1,
h=-1) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct_add_property(struct,
name,
typ,
mandatory) |
source code
|
|
|
struct_add_value_list(struct,
name,
value_list,
mandatory) |
source code
|
|
|
struct_add_list_property(struct,
name,
typ,
mandatory) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map_set_properties(m,
x,
y,
isTrans,
isWalk) |
source code
|
|
|
|
|
map_compute_fov(m,
x,
y,
radius=0,
light_walls=True,
algo=12) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
path_new_using_function(w,
h,
func,
userdata=0,
dcost=1.41) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dijkstra_new_using_function(w,
h,
func,
userdata=0,
dcost=1.41) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bsp_split_recursive(node,
randomizer,
nb,
minHSize,
minVSize,
maxHRatio,
maxVRatio) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_bsp_traverse(node,
callback,
userData,
func) |
source code
|
|
|
bsp_traverse_pre_order(node,
callback,
userData=0) |
source code
|
|
|
bsp_traverse_in_order(node,
callback,
userData=0) |
source code
|
|
|
bsp_traverse_post_order(node,
callback,
userData=0) |
source code
|
|
|
bsp_traverse_level_order(node,
callback,
userData=0) |
source code
|
|
|
bsp_traverse_inverted_level_order(node,
callback,
userData=0) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
heightmap_add_hill(hm,
x,
y,
radius,
height) |
source code
|
|
|
heightmap_dig_hill(hm,
x,
y,
radius,
height) |
source code
|
|
|
heightmap_rain_erosion(hm,
nbDrops,
erosionCoef,
sedimentationCoef,
rnd=0) |
source code
|
|
|
heightmap_kernel_transform(hm,
kernelsize,
dx,
dy,
weight,
minLevel,
maxLevel) |
source code
|
|
|
heightmap_add_voronoi(hm,
nbPoints,
nbCoef,
coef,
rnd=0) |
source code
|
|
|
heightmap_add_fbm(hm,
noise,
mulx,
muly,
addx,
addy,
octaves,
delta,
scale) |
source code
|
|
|
heightmap_scale_fbm(hm,
noise,
mulx,
muly,
addx,
addy,
octaves,
delta,
scale) |
source code
|
|
|
heightmap_dig_bezier(hm,
px,
py,
startRadius,
startDepth,
endRadius,
endDepth) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
heightmap_has_land_on_border(hm,
waterlevel) |
source code
|
|
|
|
|
|
|
|
|
|
|
namegen_generate_custom(name,
rule,
allocate=0) |
source code
|
|
|
|
|
|
|
numpy_available = True
|
|
_lib = <CDLL './libtcod-mingw.dll', handle 67780000 at d50bd0>
|
|
HEXVERSION = 66816
|
|
STRVERSION = ' 1.5.0 '
|
|
TECHVERSION = 17104899
|
|
black = Color(0, 0, 0)
|
|
darker_grey = Color(31, 31, 31)
|
|
dark_grey = Color(63, 63, 63)
|
|
grey = Color(128, 128, 128)
|
|
light_grey = Color(191, 191, 191)
|
|
darker_gray = Color(31, 31, 31)
|
|
dark_gray = Color(63, 63, 63)
|
|
gray = Color(128, 128, 128)
|
|
light_gray = Color(191, 191, 191)
|
|
white = Color(255, 255, 255)
|
|
red = Color(255, 0, 0)
|
|
orange = Color(255, 127, 0)
|
|
yellow = Color(255, 255, 0)
|
|
chartreuse = Color(127, 255, 0)
|
|
green = Color(0, 255, 0)
|
|
sea = Color(0, 255, 127)
|
|
cyan = Color(0, 255, 255)
|
|
sky = Color(0, 127, 255)
|
|
blue = Color(0, 0, 255)
|
|
violet = Color(127, 0, 255)
|
|
magenta = Color(255, 0, 255)
|
|
pink = Color(255, 0, 127)
|
|
dark_red = Color(127, 0, 0)
|
|
dark_orange = Color(127, 63, 0)
|
|
dark_yellow = Color(127, 127, 0)
|
|
dark_chartreuse = Color(63, 127, 0)
|
|
dark_green = Color(0, 127, 0)
|
|
dark_sea = Color(0, 127, 63)
|
|
dark_cyan = Color(0, 127, 127)
|
|
dark_sky = Color(0, 63, 127)
|
|
dark_blue = Color(0, 0, 127)
|
|
dark_violet = Color(63, 0, 127)
|
|
dark_magenta = Color(127, 0, 127)
|
|
dark_pink = Color(127, 0, 63)
|
|
darker_red = Color(63, 0, 0)
|
|
darker_orange = Color(63, 31, 0)
|
|
darker_yellow = Color(63, 63, 0)
|
|
darker_chartreuse = Color(31, 63, 0)
|
|
darker_green = Color(0, 63, 0)
|
|
darker_sea = Color(0, 63, 31)
|
|
darker_cyan = Color(0, 63, 63)
|
|
darker_sky = Color(0, 31, 63)
|
|
darker_blue = Color(0, 0, 63)
|
|
darker_violet = Color(31, 0, 63)
|
|
darker_magenta = Color(63, 0, 63)
|
|
darker_pink = Color(63, 0, 31)
|
|
light_red = Color(255, 127, 127)
|
|
light_orange = Color(255, 191, 127)
|
|
light_yellow = Color(255, 255, 127)
|
|
light_chartreuse = Color(191, 255, 127)
|
|
light_green = Color(127, 255, 127)
|
|
light_sea = Color(127, 255, 191)
|
|
light_cyan = Color(127, 255, 255)
|
|
light_sky = Color(127, 191, 255)
|
|
light_blue = Color(127, 127, 255)
|
|
light_violet = Color(191, 127, 255)
|
|
light_magenta = Color(255, 127, 255)
|
|
light_pink = Color(255, 127, 191)
|
|
desaturated_red = Color(127, 63, 63)
|
|
desaturated_orange = Color(127, 95, 63)
|
|
desaturated_yellow = Color(127, 127, 63)
|
|
desaturated_chartreuse = Color(95, 127, 63)
|
|
desaturated_green = Color(63, 127, 63)
|
|
desaturated_sea = Color(63, 127, 95)
|
|
desaturated_cyan = Color(63, 127, 127)
|
|
desaturated_sky = Color(63, 95, 127)
|
|
desaturated_blue = Color(63, 63, 127)
|
|
desaturated_violet = Color(95, 63, 127)
|
|
desaturated_magenta = Color(127, 63, 127)
|
|
desaturated_pink = Color(127, 63, 95)
|
|
silver = Color(203, 203, 203)
|
|
gold = Color(255, 255, 102)
|
|
BKGND_NONE = 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
|
|
KEY_PRESSED = 1
|
|
KEY_RELEASED = 2
|
|
KEY_NONE = 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 = 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 = 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 = 176
|
|
CHAR_BLOCK2 = 177
|
|
CHAR_BLOCK3 = 178
|
|
CHAR_ARROW_N = 24
|
|
CHAR_ARROW_S = 25
|
|
CHAR_ARROW_E = 26
|
|
CHAR_ARROW_W = 27
|
|
CHAR_ARROW2_N = 30
|
|
CHAR_ARROW2_S = 31
|
|
CHAR_ARROW2_E = 16
|
|
CHAR_ARROW2_W = 17
|
|
CHAR_DARROW_H = 29
|
|
CHAR_DARROW_V = 18
|
|
CHAR_CHECKBOX_UNSET = 224
|
|
CHAR_CHECKBOX_SET = 225
|
|
CHAR_RADIO_UNSET = 9
|
|
CHAR_RADIO_SET = 10
|
|
CHAR_SUBP_NW = 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
|
|
FONT_LAYOUT_ASCII_INCOL = 1
|
|
FONT_LAYOUT_ASCII_INROW = 2
|
|
FONT_TYPE_GREYSCALE = 4
|
|
FONT_TYPE_GRAYSCALE = 4
|
|
FONT_LAYOUT_TCOD = 8
|
|
COLCTRL_1 = 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
|
|
SDL_RENDERER_FUNC = None
|
|
sdl_renderer_func = None
|
|
TYPE_NONE = 0
|
|
TYPE_BOOL = 1
|
|
TYPE_CHAR = 2
|
|
TYPE_INT = 3
|
|
TYPE_FLOAT = 4
|
|
TYPE_STRING = 5
|
|
TYPE_COLOR = 6
|
|
TYPE_DICE = 7
|
|
TYPE_VALUELIST00 = 8
|
|
TYPE_VALUELIST01 = 9
|
|
TYPE_VALUELIST02 = 10
|
|
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_VALUELIST12 = 20
|
|
TYPE_VALUELIST13 = 21
|
|
TYPE_VALUELIST14 = 22
|
|
TYPE_VALUELIST15 = 23
|
|
TYPE_LIST = 1024
|
|
RNG_MT = 0
|
|
RNG_CMWC = 1
|
|
NOISE_DEFAULT_HURST = 0.5
|
|
NOISE_DEFAULT_LACUNARITY = 2.0
|
|
FOV_BASIC = 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
|
|
PATH_CBK_FUNC = None
|
|
cbk_func = None
|
|
__package__ = None
|