obj_slabs.h File Reference

#include "globals.h"

Go to the source code of this file.

Defines

#define SLAB_TYPE_ROCK   0x00
#define SLAB_TYPE_GOLD   0x01
#define SLAB_TYPE_EARTH   0x02
#define SLAB_TYPE_TORCHDIRT   0x03
#define SLAB_TYPE_WALLDRAPE   0x04
#define SLAB_TYPE_WALLTORCH   0x05
#define SLAB_TYPE_WALLWTWINS   0x06
#define SLAB_TYPE_WALLWWOMAN   0x07
#define SLAB_TYPE_WALLPAIRSHR   0x08
#define SLAB_TYPE_PATH   0x0a
#define SLAB_TYPE_CLAIMED   0x0b
#define SLAB_TYPE_LAVA   0x0c
#define SLAB_TYPE_WATER   0x0d
#define SLAB_TYPE_PORTAL   0x0e
#define SLAB_TYPE_TREASURE   0x10
#define SLAB_TYPE_LIBRARY   0x12
#define SLAB_TYPE_PRISONCASE   0x14
#define SLAB_TYPE_TORTURE   0x16
#define SLAB_TYPE_TRAINING   0x18
#define SLAB_TYPE_DUNGHEART   0x1a
#define SLAB_TYPE_WORKSHOP   0x1c
#define SLAB_TYPE_SCAVENGER   0x1e
#define SLAB_TYPE_TEMPLE   0x20
#define SLAB_TYPE_GRAVEYARD   0x22
#define SLAB_TYPE_HATCHERY   0x24
#define SLAB_TYPE_LAIR   0x26
#define SLAB_TYPE_BARRACKS   0x28
#define SLAB_TYPE_DOORWOOD1   0x2a
#define SLAB_TYPE_DOORWOOD2   0x2b
#define SLAB_TYPE_DOORBRACE1   0x2c
#define SLAB_TYPE_DOORBRACE2   0x2d
#define SLAB_TYPE_DOORIRON1   0x2e
#define SLAB_TYPE_DOORIRON2   0x2f
#define SLAB_TYPE_DOORMAGIC1   0x30
#define SLAB_TYPE_DOORMAGIC2   0x31
#define SLAB_TYPE_BRIDGE   0x33
#define SLAB_TYPE_GEMS   0x34
#define SLAB_TYPE_GUARDPOST   0x35
#define PLAYERS_COUNT   6
#define PLAYER0   0x00
#define PLAYER1   0x01
#define PLAYER2   0x02
#define PLAYER3   0x03
#define PLAYER_GOOD   0x04
#define PLAYER_UNSET   0x05
#define PLAYER_ALL   0x06

Functions

DLLIMPORT short slab_is_central (struct LEVEL *lvl, int x, int y)
DLLIMPORT short slabs_verify (struct LEVEL *lvl, char *err_msg, struct IPOINT_2D *errpt)
DLLIMPORT int slab_siblings_oftype (struct LEVEL *lvl, int x, int y, unsigned short slab_type)
DLLIMPORT void slab_draw_smear (struct LEVEL *lvl, int startx, int starty, int startr, int endx, int endy, int endr, int bend, unsigned short slab_type)
DLLIMPORT void slab_draw_circle (struct LEVEL *lvl, int x, int y, int rad, unsigned short slab_type)
DLLIMPORT short slab_is_short (unsigned short slab_type)
DLLIMPORT short slab_is_door (unsigned short slab_type)
DLLIMPORT short slab_is_room (unsigned short slab_type)
DLLIMPORT short slab_is_wall (unsigned short slab_type)
DLLIMPORT short slab_is_wealth (unsigned short slab_type)
DLLIMPORT short slab_is_space (unsigned short slab_type)
DLLIMPORT short slab_is_tall_unclmabl (unsigned short slab_type)
DLLIMPORT short slab_is_tall (unsigned short slab_type)
DLLIMPORT short slab_is_short_clmabl (unsigned short slab_type)
DLLIMPORT short slab_is_short_unclmabl (unsigned short slab_type)
DLLIMPORT short slab_is_clmabl (unsigned short slab_type)
DLLIMPORT short slab_is_claimedgnd (unsigned short slab_type)
DLLIMPORT short slab_is_liquid (unsigned short slab_type)
DLLIMPORT short slab_allows_torch (unsigned short slab_type)
DLLIMPORT short slab_needs_adjacent_torch (unsigned short slab_type)
DLLIMPORT short slab_verify_entry (unsigned short slab_type, char *err_msg)
DLLIMPORT char * get_slab_fullname (unsigned short slb_type)
DLLIMPORT unsigned short get_random_wall_slab (void)
DLLIMPORT short subtl_is_near_tall_slab (struct LEVEL *lvl, unsigned int sx, unsigned int sy)
DLLIMPORT short place_room_rndpos (struct LEVEL *lvl, const unsigned short rslab, const unsigned char rown, const struct IPOINT_2D *rsize)
DLLIMPORT char * get_owner_type_fullname (unsigned char own_idx)
DLLIMPORT char * get_owner_type_colorname (unsigned char own_idx)
DLLIMPORT unsigned char get_owner_next (unsigned char plyr_idx)
DLLIMPORT unsigned char get_owner_prev (unsigned char plyr_idx)
DLLIMPORT void update_slab_owners (struct LEVEL *lvl)

Variables

char const SLB_UNKN_LTEXT []
char const SLB_ROCK_LTEXT []
char const SLB_GOLD_LTEXT []
char const SLB_EARTH_LTEXT []
char const SLB_TORCHDIRT_LTEXT []
char const SLB_WALLDRAPE_LTEXT []
char const SLB_WALLTORCH_LTEXT []
char const SLB_WALLWTWINS_LTEXT []
char const SLB_WALLWWOMAN_LTEXT []
char const SLB_WALLPAIRSHR_LTEXT []
char const SLB_PATH_LTEXT []
char const SLB_CLAIMED_LTEXT []
char const SLB_LAVA_LTEXT []
char const SLB_WATER_LTEXT []
char const SLB_PORTAL_LTEXT []
char const SLB_TREASURE_LTEXT []
char const SLB_LIBRARY_LTEXT []
char const SLB_PRISON_LTEXT []
char const SLB_TORTURE_LTEXT []
char const SLB_TRAINING_LTEXT []
char const SLB_DUNGHEART_LTEXT []
char const SLB_WORKSHOP_LTEXT []
char const SLB_SCAVENGER_LTEXT []
char const SLB_TEMPLE_LTEXT []
char const SLB_GRAVEYARD_LTEXT []
char const SLB_HATCHERY_LTEXT []
char const SLB_LAIR_LTEXT []
char const SLB_BARRACKS_LTEXT []
char const SLB_DOORWOOD_LTEXT []
char const SLB_DOORBRACE_LTEXT []
char const SLB_DOORIRON_LTEXT []
char const SLB_DOORMAGIC_LTEXT []
char const SLB_BRIDGE_LTEXT []
char const SLB_GEMS_LTEXT []
char const SLB_GUARDPOST_LTEXT []


Define Documentation

#define PLAYER0   0x00

#define PLAYER1   0x01

#define PLAYER2   0x02

#define PLAYER3   0x03

#define PLAYER_ALL   0x06

#define PLAYER_GOOD   0x04

#define PLAYER_UNSET   0x05

#define PLAYERS_COUNT   6

#define SLAB_TYPE_BARRACKS   0x28

#define SLAB_TYPE_BRIDGE   0x33

#define SLAB_TYPE_CLAIMED   0x0b

#define SLAB_TYPE_DOORBRACE1   0x2c

#define SLAB_TYPE_DOORBRACE2   0x2d

Definition at line 58 of file obj_slabs.h.

Referenced by create_columns_for_slab(), things_verify(), and update_door_things_on_slab().

#define SLAB_TYPE_DOORIRON1   0x2e

#define SLAB_TYPE_DOORIRON2   0x2f

Definition at line 60 of file obj_slabs.h.

Referenced by create_columns_for_slab(), things_verify(), and update_door_things_on_slab().

#define SLAB_TYPE_DOORMAGIC1   0x30

#define SLAB_TYPE_DOORMAGIC2   0x31

Definition at line 62 of file obj_slabs.h.

Referenced by create_columns_for_slab(), things_verify(), and update_door_things_on_slab().

#define SLAB_TYPE_DOORWOOD1   0x2a

#define SLAB_TYPE_DOORWOOD2   0x2b

Definition at line 56 of file obj_slabs.h.

Referenced by create_columns_for_slab(), things_verify(), and update_door_things_on_slab().

#define SLAB_TYPE_DUNGHEART   0x1a

#define SLAB_TYPE_EARTH   0x02

#define SLAB_TYPE_GEMS   0x34

Examples:
putgems.c.

Definition at line 64 of file obj_slabs.h.

Referenced by create_columns_for_slab(), and draw_map_on_buffer().

#define SLAB_TYPE_GOLD   0x01

Definition at line 29 of file obj_slabs.h.

Referenced by create_columns_for_slab(), and draw_map_on_buffer().

#define SLAB_TYPE_GRAVEYARD   0x22

#define SLAB_TYPE_GUARDPOST   0x35

#define SLAB_TYPE_HATCHERY   0x24

#define SLAB_TYPE_LAIR   0x26

#define SLAB_TYPE_LAVA   0x0c

#define SLAB_TYPE_LIBRARY   0x12

#define SLAB_TYPE_PATH   0x0a

#define SLAB_TYPE_PORTAL   0x0e

#define SLAB_TYPE_PRISONCASE   0x14

#define SLAB_TYPE_ROCK   0x00

#define SLAB_TYPE_SCAVENGER   0x1e

#define SLAB_TYPE_TEMPLE   0x20

#define SLAB_TYPE_TORCHDIRT   0x03

#define SLAB_TYPE_TORTURE   0x16

#define SLAB_TYPE_TRAINING   0x18

#define SLAB_TYPE_TREASURE   0x10

#define SLAB_TYPE_WALLDRAPE   0x04

Definition at line 32 of file obj_slabs.h.

Referenced by create_columns_for_slab().

#define SLAB_TYPE_WALLPAIRSHR   0x08

Definition at line 36 of file obj_slabs.h.

Referenced by create_columns_for_slab().

#define SLAB_TYPE_WALLTORCH   0x05

Definition at line 33 of file obj_slabs.h.

Referenced by create_columns_for_slab(), and slab_needs_adjacent_torch().

#define SLAB_TYPE_WALLWTWINS   0x06

Definition at line 34 of file obj_slabs.h.

Referenced by create_columns_for_slab().

#define SLAB_TYPE_WALLWWOMAN   0x07

Definition at line 35 of file obj_slabs.h.

Referenced by create_columns_for_slab().

#define SLAB_TYPE_WATER   0x0d

#define SLAB_TYPE_WORKSHOP   0x1c


Function Documentation

DLLIMPORT unsigned char get_owner_next ( unsigned char  plyr_idx  ) 

Definition at line 148 of file obj_slabs.c.

DLLIMPORT unsigned char get_owner_prev ( unsigned char  plyr_idx  ) 

Definition at line 155 of file obj_slabs.c.

DLLIMPORT char* get_owner_type_colorname ( unsigned char  own_idx  ) 

Definition at line 234 of file obj_slabs.c.

Referenced by write_nfo().

DLLIMPORT char* get_owner_type_fullname ( unsigned char  own_idx  ) 

Definition at line 222 of file obj_slabs.c.

DLLIMPORT unsigned short get_random_wall_slab ( void   ) 

Definition at line 336 of file obj_slabs.c.

DLLIMPORT char* get_slab_fullname ( unsigned short  slb_type  ) 

Definition at line 512 of file obj_slabs.c.

Referenced by things_verify().

DLLIMPORT short place_room_rndpos ( struct LEVEL lvl,
const unsigned short  rslab,
const unsigned char  rown,
const struct IPOINT_2D rsize 
)

Definition at line 191 of file obj_slabs.c.

Referenced by level_generate_random_extension().

DLLIMPORT short slab_allows_torch ( unsigned short  slab_type  ) 

Definition at line 431 of file obj_slabs.c.

Referenced by update_torch_things_near_slab().

DLLIMPORT void slab_draw_circle ( struct LEVEL lvl,
int  x,
int  y,
int  rad,
unsigned short  slab_type 
)

Definition at line 477 of file obj_slabs.c.

Referenced by slab_draw_smear().

DLLIMPORT void slab_draw_smear ( struct LEVEL lvl,
int  startx,
int  starty,
int  startr,
int  endx,
int  endy,
int  endr,
int  bend,
unsigned short  slab_type 
)

Definition at line 452 of file obj_slabs.c.

Referenced by generate_slab_bkgnd_random().

DLLIMPORT short slab_is_central ( struct LEVEL lvl,
int  x,
int  y 
)

Definition at line 246 of file obj_slabs.c.

DLLIMPORT short slab_is_claimedgnd ( unsigned short  slab_type  ) 

Definition at line 414 of file obj_slabs.c.

Referenced by create_columns_slb_claimed().

DLLIMPORT short slab_is_clmabl ( unsigned short  slab_type  ) 

Definition at line 421 of file obj_slabs.c.

Referenced by update_slab_owners().

DLLIMPORT short slab_is_door ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_liquid ( unsigned short  slab_type  ) 

Definition at line 361 of file obj_slabs.c.

Referenced by slab_allows_torch().

DLLIMPORT short slab_is_room ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_short ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_short_clmabl ( unsigned short  slab_type  ) 

Definition at line 404 of file obj_slabs.c.

DLLIMPORT short slab_is_short_unclmabl ( unsigned short  slab_type  ) 

Definition at line 379 of file obj_slabs.c.

Referenced by modify_frail_columns(), and slab_is_clmabl().

DLLIMPORT short slab_is_space ( unsigned short  slab_type  ) 

Definition at line 352 of file obj_slabs.c.

Referenced by slab_is_short(), and slab_verify_entry().

DLLIMPORT short slab_is_tall ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_tall_unclmabl ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_wall ( unsigned short  slab_type  ) 

DLLIMPORT short slab_is_wealth ( unsigned short  slab_type  ) 

Definition at line 344 of file obj_slabs.c.

Referenced by compute_flg_for_tile().

DLLIMPORT short slab_needs_adjacent_torch ( unsigned short  slab_type  ) 

Definition at line 442 of file obj_slabs.c.

Referenced by compute_torch_sensitile(), and update_clmaffective_obj_for_slab().

DLLIMPORT int slab_siblings_oftype ( struct LEVEL lvl,
int  x,
int  y,
unsigned short  slab_type 
)

Definition at line 293 of file obj_slabs.c.

Referenced by generate_slab_bkgnd_random(), and update_tile_wlb_entry().

DLLIMPORT short slab_verify_entry ( unsigned short  slab_type,
char *  err_msg 
)

Definition at line 498 of file obj_slabs.c.

Referenced by slabs_verify().

DLLIMPORT short slabs_verify ( struct LEVEL lvl,
char *  err_msg,
struct IPOINT_2D errpt 
)

Definition at line 267 of file obj_slabs.c.

Referenced by level_verify().

DLLIMPORT short subtl_is_near_tall_slab ( struct LEVEL lvl,
unsigned int  sx,
unsigned int  sy 
)

Definition at line 521 of file obj_slabs.c.

Referenced by delete_room_things_subtl().

DLLIMPORT void update_slab_owners ( struct LEVEL lvl  ) 

Definition at line 165 of file obj_slabs.c.

Referenced by user_save_map().


Variable Documentation

char const SLB_BARRACKS_LTEXT[]

Definition at line 55 of file obj_slabs.c.

char const SLB_BRIDGE_LTEXT[]

Definition at line 60 of file obj_slabs.c.

char const SLB_CLAIMED_LTEXT[]

Definition at line 39 of file obj_slabs.c.

char const SLB_DOORBRACE_LTEXT[]

Definition at line 57 of file obj_slabs.c.

char const SLB_DOORIRON_LTEXT[]

Definition at line 58 of file obj_slabs.c.

char const SLB_DOORMAGIC_LTEXT[]

Definition at line 59 of file obj_slabs.c.

char const SLB_DOORWOOD_LTEXT[]

Definition at line 56 of file obj_slabs.c.

char const SLB_DUNGHEART_LTEXT[]

Definition at line 48 of file obj_slabs.c.

char const SLB_EARTH_LTEXT[]

Definition at line 31 of file obj_slabs.c.

char const SLB_GEMS_LTEXT[]

Definition at line 61 of file obj_slabs.c.

char const SLB_GOLD_LTEXT[]

Definition at line 30 of file obj_slabs.c.

char const SLB_GRAVEYARD_LTEXT[]

Definition at line 52 of file obj_slabs.c.

char const SLB_GUARDPOST_LTEXT[]

Definition at line 62 of file obj_slabs.c.

char const SLB_HATCHERY_LTEXT[]

Definition at line 53 of file obj_slabs.c.

char const SLB_LAIR_LTEXT[]

Definition at line 54 of file obj_slabs.c.

char const SLB_LAVA_LTEXT[]

Definition at line 40 of file obj_slabs.c.

char const SLB_LIBRARY_LTEXT[]

Definition at line 44 of file obj_slabs.c.

char const SLB_PATH_LTEXT[]

Definition at line 38 of file obj_slabs.c.

char const SLB_PORTAL_LTEXT[]

Definition at line 42 of file obj_slabs.c.

char const SLB_PRISON_LTEXT[]

Definition at line 45 of file obj_slabs.c.

char const SLB_ROCK_LTEXT[]

Definition at line 29 of file obj_slabs.c.

char const SLB_SCAVENGER_LTEXT[]

Definition at line 50 of file obj_slabs.c.

char const SLB_TEMPLE_LTEXT[]

Definition at line 51 of file obj_slabs.c.

char const SLB_TORCHDIRT_LTEXT[]

Definition at line 32 of file obj_slabs.c.

char const SLB_TORTURE_LTEXT[]

Definition at line 46 of file obj_slabs.c.

char const SLB_TRAINING_LTEXT[]

Definition at line 47 of file obj_slabs.c.

char const SLB_TREASURE_LTEXT[]

Definition at line 43 of file obj_slabs.c.

char const SLB_UNKN_LTEXT[]

Definition at line 28 of file obj_slabs.c.

char const SLB_WALLDRAPE_LTEXT[]

Definition at line 33 of file obj_slabs.c.

char const SLB_WALLPAIRSHR_LTEXT[]

Definition at line 37 of file obj_slabs.c.

char const SLB_WALLTORCH_LTEXT[]

Definition at line 34 of file obj_slabs.c.

char const SLB_WALLWTWINS_LTEXT[]

Definition at line 35 of file obj_slabs.c.

char const SLB_WALLWWOMAN_LTEXT[]

Definition at line 36 of file obj_slabs.c.

char const SLB_WATER_LTEXT[]

Definition at line 41 of file obj_slabs.c.

char const SLB_WORKSHOP_LTEXT[]

Definition at line 49 of file obj_slabs.c.


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