00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef ADIKT_OBJACTNPTS_H
00021 #define ADIKT_OBJACTNPTS_H
00022
00023 struct LEVEL;
00024
00025 #include "globals.h"
00026
00027 DLLIMPORT unsigned char get_actnpt_subtile_x(unsigned char *actnpt);
00028 DLLIMPORT short set_actnpt_subtile_x(unsigned char *actnpt,unsigned char pos_x);
00029 DLLIMPORT unsigned char get_actnpt_subtile_y(unsigned char *actnpt);
00030 DLLIMPORT short set_actnpt_subtile_y(unsigned char *actnpt,unsigned char pos_y);
00031 DLLIMPORT unsigned char get_actnpt_range_subtile(unsigned char *actnpt);
00032 DLLIMPORT short set_actnpt_range_subtile(unsigned char *actnpt,unsigned char rng_tl);
00033 DLLIMPORT short set_actnpt_subtile(unsigned char *actnpt,unsigned char pos_x,unsigned char pos_y);
00034 DLLIMPORT unsigned char get_actnpt_subtpos_x(unsigned char *actnpt);
00035 DLLIMPORT unsigned short get_actnpt_pos_x_adv(const unsigned char *actnpt);
00036 DLLIMPORT short set_actnpt_subtpos_x(unsigned char *actnpt,unsigned char pos_x);
00037 DLLIMPORT unsigned char get_actnpt_subtpos_y(unsigned char *actnpt);
00038 DLLIMPORT short set_actnpt_subtpos_y(unsigned char *actnpt,unsigned char pos_y);
00039 DLLIMPORT unsigned short get_actnpt_pos_y_adv(const unsigned char *actnpt);
00040 DLLIMPORT unsigned char get_actnpt_range_subtpos(unsigned char *actnpt);
00041 DLLIMPORT short set_actnpt_range_subtpos(unsigned char *actnpt,unsigned char rng_st);
00042 DLLIMPORT unsigned int get_actnpt_range_adv(unsigned char *actnpt);
00043 DLLIMPORT short set_actnpt_subtpos(unsigned char *actnpt,unsigned char pos_x,unsigned char pos_y);
00044 DLLIMPORT unsigned short get_actnpt_number(unsigned char *actnpt);
00045 DLLIMPORT short set_actnpt_number(unsigned char *actnpt,unsigned short apt_num);
00046
00047 DLLIMPORT unsigned char *create_actnpt(struct LEVEL *lvl, unsigned int sx, unsigned int sy);
00048 DLLIMPORT unsigned char *create_actnpt_copy(unsigned int sx, unsigned int sy,unsigned char *src);
00049 DLLIMPORT unsigned short get_free_actnpt_number(const struct LEVEL *lvl);
00050 DLLIMPORT unsigned short get_free_actnpt_number_next(const struct LEVEL *lvl,const unsigned short start);
00051 DLLIMPORT unsigned short get_free_actnpt_number_prev(const struct LEVEL *lvl,const unsigned short start);
00052 DLLIMPORT short create_actnpt_number_used_arr(const struct LEVEL *lvl,unsigned char **used,unsigned int *used_size);
00053 DLLIMPORT unsigned long get_actnpt_distance_adv(const unsigned char *actnpt,const int ssx,const int ssy);
00054
00055 DLLIMPORT unsigned char get_stlight_subtile_x(unsigned char *stlight);
00056 DLLIMPORT short set_stlight_subtile_x(unsigned char *stlight,unsigned char pos_x);
00057 DLLIMPORT unsigned char get_stlight_subtile_y(unsigned char *stlight);
00058 DLLIMPORT short set_stlight_subtile_y(unsigned char *stlight,unsigned char pos_y);
00059 DLLIMPORT short set_stlight_subtile(unsigned char *stlight,unsigned char pos_x,unsigned char pos_y);
00060 DLLIMPORT unsigned char get_stlight_subtile_h(unsigned char *stlight);
00061 DLLIMPORT short set_stlight_subtile_h(unsigned char *stlight,unsigned char pos_h);
00062 DLLIMPORT unsigned char get_stlight_subtpos_x(unsigned char *stlight);
00063 DLLIMPORT unsigned short get_stlight_pos_x_adv(const unsigned char *stlight);
00064 DLLIMPORT short set_stlight_subtpos_x(unsigned char *stlight,unsigned char pos_x);
00065 DLLIMPORT unsigned char get_stlight_subtpos_y(unsigned char *stlight);
00066 DLLIMPORT unsigned short get_stlight_pos_y_adv(const unsigned char *stlight);
00067 DLLIMPORT short set_stlight_subtpos_y(unsigned char *stlight,unsigned char pos_y);
00068 DLLIMPORT short set_stlight_subtpos(unsigned char *stlight,unsigned char pos_x,unsigned char pos_y);
00069 DLLIMPORT unsigned char get_stlight_subtpos_h(unsigned char *stlight);
00070 DLLIMPORT short set_stlight_subtpos_h(unsigned char *stlight,unsigned char pos_h);
00071 DLLIMPORT unsigned char get_stlight_range_subtile(unsigned char *stlight);
00072 DLLIMPORT short set_stlight_range_subtile(unsigned char *stlight,unsigned char rng_tl);
00073 DLLIMPORT unsigned char get_stlight_range_subtpos(unsigned char *stlight);
00074 DLLIMPORT short set_stlight_range_subtpos(unsigned char *stlight,unsigned char rng_st);
00075 DLLIMPORT unsigned int get_stlight_range_adv(unsigned char *stlight);
00076 DLLIMPORT unsigned char get_stlight_intensivity(unsigned char *stlight);
00077 DLLIMPORT short set_stlight_intensivity(unsigned char *stlight,unsigned char intens);
00078
00079 DLLIMPORT unsigned char *create_stlight(unsigned int sx, unsigned int sy);
00080 DLLIMPORT unsigned char *create_stlight_copy(unsigned int sx, unsigned int sy,unsigned char *src);
00081 DLLIMPORT unsigned long get_stlight_distance_adv(const unsigned char *stlight,const int ssx,const int ssy);
00082
00083 #endif // ADIKT_OBJACTNPTS_H