00001
00016
00017
00018 #ifndef ADIKT_GRAFFITI_H
00019 #define ADIKT_GRAFFITI_H
00020
00021 struct LEVEL;
00022 struct COLUMN_REC;
00023 struct DK_GRAFFITI;
00024
00025 #include "globals.h"
00026
00027
00028 DLLIMPORT short level_free_graffiti(struct LEVEL *lvl);
00029 DLLIMPORT int place_graffiti_on_slab(struct COLUMN_REC *clm_recs[9],struct LEVEL *lvl, int tx, int ty);
00030
00031 DLLIMPORT unsigned int get_graffiti_count(struct LEVEL *lvl);
00032 DLLIMPORT struct DK_GRAFFITI *get_graffiti(struct LEVEL *lvl, int graf_idx);
00033 DLLIMPORT char *get_graffiti_text(struct LEVEL *lvl,unsigned int num);
00034 DLLIMPORT int graffiti_idx(struct LEVEL *lvl, int tx, int ty);
00035 DLLIMPORT int graffiti_idx_next(struct LEVEL *lvl, int tx, int ty,int prev_idx);
00036 DLLIMPORT struct DK_GRAFFITI *create_graffiti(int tx, int ty, char *text, const struct LEVEL *lvl, int orient);
00037 DLLIMPORT int graffiti_add_obj(struct LEVEL *lvl,struct DK_GRAFFITI *graf);
00038 DLLIMPORT int graffiti_add(struct LEVEL *lvl,int tx, int ty,int height, char *text,int font,
00039 unsigned short orient,unsigned short cube);
00040 DLLIMPORT void graffiti_del(struct LEVEL *lvl,unsigned int num);
00041 DLLIMPORT short place_graffiti_on_column(struct COLUMN_REC *clm_rec,unsigned short font,
00042 unsigned short height,char *text,int graf_subtl,unsigned short cube);
00043 DLLIMPORT short place_graffiti_on_clm_top(struct COLUMN_REC *clm_rec,unsigned short font,
00044 unsigned short height,char *text,int graf_subtl,int graf_subtl_h,
00045 unsigned short cube);
00046 DLLIMPORT int compute_graffiti_subtl_length(unsigned short font,char *text);
00047 DLLIMPORT void graffiti_update_columns(struct LEVEL *lvl,int graf_idx);
00048 DLLIMPORT void graffiti_clear_from_columns(struct LEVEL *lvl,int graf_idx);
00049 DLLIMPORT short set_graffiti_orientation(struct DK_GRAFFITI *graf,const struct LEVEL *lvl,unsigned short orient);
00050 DLLIMPORT int set_graffiti_height(struct DK_GRAFFITI *graf,int height);
00051
00052 DLLIMPORT int get_graffiti_cube_height(unsigned short font,char *text);
00053 DLLIMPORT const unsigned char *get_font_char(unsigned short font,char chr);
00054
00055
00056
00057 extern const unsigned char font_any_chnull[];
00058 extern const unsigned char *font_adiclssc_chars[];
00059 extern const int font_adiclssc_height;
00060 extern const unsigned char *font_adisize8_chars[];
00061 extern const int font_adisize8_height;
00062
00063 #endif // ADIKT_GRAFFITI_H