globals.h File Reference


Detailed Description

Global configuration file.

Purpose:
Header file with global definitions for Another Dungeon Keeper Map Editor.
Comment:
Defines basic includes and definitions, used in whole program.
Author:
Jon Skeet, Tomasz Lis
Date:
08 sep 1998 - 22 Jul 2008
Copying and copyrights:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Definition in file globals.h.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  IPOINT_2D
struct  IPOINT_3D
struct  UPOINT_2D
struct  UPOINT_3D
struct  USPOINT_2D
struct  IRECT_2D
struct  SCRIPT_OPTIONS
struct  MAPDRAW_OPTIONS
struct  VERIFY_OPTIONS
struct  LEVOPTIONS

Defines

#define DLLIMPORT   __declspec (dllimport)
#define SEPARATOR   "\\"
#define false   0
#define true   1
#define max(a, b)   ((a)>(b)?(a):(b))
#define min(a, b)   ((a)<(b)?(a):(b))
#define DISKPATH_SIZE   256
#define LINEMSG_SIZE   160
#define READ_BUFSIZE   256
#define PROGRAM_NAME   "ADiKtEd"
#define VERIF_ERROR   0
#define VERIF_OK   1
#define VERIF_WARN   2
#define ERR_NONE   0
#define ERR_BASE_RNC   -90
#define THING_CATEGR_COUNT   0x16

Typedefs

typedef short(* is_thing_subtype )(const unsigned char *thing)
typedef short(* is_item_subtype )(const unsigned char stype_idx)
typedef int(* thing_subtype_arrayindex )(const unsigned char stype_idx)
typedef unsigned char(* thing_subtype_switch )(const unsigned char stype_idx)
typedef unsigned char(* thing_subtype_arrayitem )(const int arr_itm)


Define Documentation

#define DISKPATH_SIZE   256

#define DLLIMPORT   __declspec (dllimport)

Definition at line 47 of file globals.h.

#define ERR_BASE_RNC   -90

Definition at line 88 of file globals.h.

#define ERR_NONE   0

Examples:
putemple.c, putgems.c, puttrain.c, and viewmap.c.

Definition at line 85 of file globals.h.

Referenced by alloc_cubedata(), alloc_datfile_data(), alloc_jtytabfile_data(), change_draw_data_texture(), create_images_dattab_enc(), create_images_dattab_idx(), create_images_jtytab_enc(), create_images_jtytab_idx(), draw_map_on_buffer(), draw_map_on_buffer_fast(), draw_rect_mul_on_buffer(), draw_rect_sum_on_buffer(), draw_text_on_buffer(), draw_texture_on_buffer_avg2(), draw_texture_on_buffer_avg2_fast(), draw_texture_on_buffer_avg2_fast_unsafe(), draw_texture_on_buffer_avg4(), draw_texture_on_buffer_avg4_unsafe(), draw_texture_on_buffer_noavg(), draw_texture_on_buffer_noavg_unsafe(), draw_texture_on_buffer_noscale(), draw_things_on_buffer(), free_cubedata(), free_datfile_data(), free_dattab_encimages(), free_draw_data(), free_jtytabfile_data(), free_tabfile_data(), generate_map_bitmap(), generate_map_bitmap_mapfname(), get_draw_subtile_rect(), get_draw_tile_rect(), get_full_draw_dimensions(), get_full_draw_dimensions_opt(), get_object_with_circle_at(), get_subtile_from_draw_coords(), get_subtile_from_draw_coords_adv(), get_subtile_from_draw_coords_adv_fast(), get_subtile_from_draw_coords_ip(), get_thing_with_circle_at(), get_top_texture_pos(), level_clear_options(), level_free_graffiti(), level_set_mapdraw_options(), level_set_options(), load_apt(), load_clm(), load_cubedata(), load_dat(), load_dk1_map(), load_dke_map(), load_draw_data(), load_flg(), load_inf(), load_lgt(), load_lif(), load_map_preview(), load_mapfile(), load_mapfile_msg(), load_own(), load_palette(), load_slb(), load_text_file(), load_texture(), load_textureanim(), load_tng(), load_txt(), load_vsn(), load_wib(), load_wlb(), place_sprite_cntr_on_buf_rgb(), read_datfile_data(), read_jtytabfile_data(), read_tabfile_data(), save_dk1_map(), save_dke_map(), save_mapfile(), save_nfo_file(), script_load_and_execute(), set_draw_data_rect(), set_graffiti_orientation(), switch_cubedata_entries(), switch_encimage_entries(), switch_jtytabfile_entries(), texture_index_to_texture_pos(), update_dat_last_column(), user_load_map(), write_apt(), write_clm(), write_cubedata(), write_dat(), write_datfile_data(), write_dattab_images_enc(), write_encimages_dattab(), write_encimages_jtytab(), write_flg(), write_inf(), write_jtytab_images_enc(), write_jtytabfile_data(), write_lgt(), write_own(), write_slb(), write_tabfile_data(), write_text_file(), write_tng(), write_vsn(), write_wib(), and write_wlb().

#define false   0

Definition at line 59 of file globals.h.

#define LINEMSG_SIZE   160

#define max ( a,
 )     ((a)>(b)?(a):(b))

#define min ( a,
 )     ((a)<(b)?(a):(b))

#define PROGRAM_NAME   "ADiKtEd"

#define READ_BUFSIZE   256

Definition at line 75 of file globals.h.

Referenced by execute_adikted_command().

#define SEPARATOR   "\\"

Definition at line 55 of file globals.h.

Referenced by format_data_fname(), format_map_fname(), and prepare_short_fname().

#define THING_CATEGR_COUNT   0x16

Definition at line 170 of file globals.h.

Referenced by level_clear_stats(), and update_thing_stats().

#define true   1

Definition at line 62 of file globals.h.

#define VERIF_ERROR   0

Definition at line 80 of file globals.h.

Referenced by dat_verify(), level_verify(), level_verify_struct(), and user_save_map().

#define VERIF_OK   1

#define VERIF_WARN   2


Typedef Documentation

typedef short(* is_item_subtype)(const unsigned char stype_idx)

Definition at line 172 of file globals.h.

typedef short(* is_thing_subtype)(const unsigned char *thing)

Definition at line 171 of file globals.h.

typedef int(* thing_subtype_arrayindex)(const unsigned char stype_idx)

Definition at line 173 of file globals.h.

typedef unsigned char(* thing_subtype_arrayitem)(const int arr_itm)

Definition at line 175 of file globals.h.

typedef unsigned char(* thing_subtype_switch)(const unsigned char stype_idx)

Definition at line 174 of file globals.h.


Generated on Tue Sep 2 18:51:48 2008 for libAdikted by  doxygen 1.5.6