#include "obj_actnpts.h"
#include "globals.h"
#include "lev_data.h"
#include "obj_slabs.h"
Go to the source code of this file.
Functions | |
unsigned char | get_actnpt_subtile_x (unsigned char *actnpt) |
short | set_actnpt_subtile_x (unsigned char *actnpt, unsigned char pos_x) |
unsigned char | get_actnpt_subtile_y (unsigned char *actnpt) |
short | set_actnpt_subtile_y (unsigned char *actnpt, unsigned char pos_y) |
short | set_actnpt_subtile (unsigned char *actnpt, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_actnpt_range_subtile (unsigned char *actnpt) |
short | set_actnpt_range_subtile (unsigned char *actnpt, unsigned char rng_tl) |
unsigned int | get_actnpt_range_adv (unsigned char *actnpt) |
unsigned char | get_actnpt_subtpos_x (unsigned char *actnpt) |
unsigned short | get_actnpt_pos_x_adv (const unsigned char *actnpt) |
short | set_actnpt_subtpos_x (unsigned char *actnpt, unsigned char pos_x) |
unsigned char | get_actnpt_subtpos_y (unsigned char *actnpt) |
unsigned short | get_actnpt_pos_y_adv (const unsigned char *actnpt) |
short | set_actnpt_subtpos_y (unsigned char *actnpt, unsigned char pos_y) |
short | set_actnpt_subtpos (unsigned char *actnpt, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_actnpt_range_subtpos (unsigned char *actnpt) |
short | set_actnpt_range_subtpos (unsigned char *actnpt, unsigned char rng_st) |
unsigned short | get_actnpt_number (unsigned char *actnpt) |
short | set_actnpt_number (unsigned char *actnpt, unsigned short apt_num) |
unsigned char * | create_actnpt (struct LEVEL *lvl, unsigned int sx, unsigned int sy) |
unsigned char * | create_actnpt_copy (unsigned int sx, unsigned int sy, unsigned char *src) |
unsigned short | get_free_actnpt_number (const struct LEVEL *lvl) |
unsigned short | get_free_actnpt_number_next (const struct LEVEL *lvl, const unsigned short start) |
unsigned short | get_free_actnpt_number_prev (const struct LEVEL *lvl, const unsigned short start) |
short | create_actnpt_number_used_arr (const struct LEVEL *lvl, unsigned char **used, unsigned int *used_size) |
unsigned char | get_stlight_subtile_x (unsigned char *stlight) |
short | set_stlight_subtile_x (unsigned char *stlight, unsigned char pos_x) |
unsigned char | get_stlight_subtile_y (unsigned char *stlight) |
short | set_stlight_subtile_y (unsigned char *stlight, unsigned char pos_y) |
short | set_stlight_subtile (unsigned char *stlight, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_stlight_subtile_h (unsigned char *stlight) |
short | set_stlight_subtile_h (unsigned char *stlight, unsigned char pos_h) |
unsigned char | get_stlight_subtpos_x (unsigned char *stlight) |
unsigned short | get_stlight_pos_x_adv (const unsigned char *stlight) |
short | set_stlight_subtpos_x (unsigned char *stlight, unsigned char pos_x) |
unsigned char | get_stlight_subtpos_y (unsigned char *stlight) |
unsigned short | get_stlight_pos_y_adv (const unsigned char *stlight) |
short | set_stlight_subtpos_y (unsigned char *stlight, unsigned char pos_y) |
short | set_stlight_subtpos (unsigned char *stlight, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_stlight_subtpos_h (unsigned char *stlight) |
short | set_stlight_subtpos_h (unsigned char *stlight, unsigned char pos_h) |
unsigned char | get_stlight_range_subtile (unsigned char *stlight) |
short | set_stlight_range_subtile (unsigned char *stlight, unsigned char rng_tl) |
unsigned char | get_stlight_range_subtpos (unsigned char *stlight) |
short | set_stlight_range_subtpos (unsigned char *stlight, unsigned char rng_st) |
unsigned int | get_stlight_range_adv (unsigned char *stlight) |
unsigned char | get_stlight_intensivity (unsigned char *stlight) |
short | set_stlight_intensivity (unsigned char *stlight, unsigned char intens) |
unsigned char * | create_stlight (unsigned int sx, unsigned int sy) |
unsigned char * | create_stlight_copy (unsigned int sx, unsigned int sy, unsigned char *src) |
unsigned long | get_actnpt_distance_adv (const unsigned char *actnpt, const int ssx, const int ssy) |
Returns distance between given action point and another map point. | |
unsigned long | get_stlight_distance_adv (const unsigned char *stlight, const int ssx, const int ssy) |
Returns distance between given static light and another map point. |
unsigned char* create_actnpt | ( | struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy | |||
) |
Definition at line 152 of file obj_actnpts.c.
unsigned char* create_actnpt_copy | ( | unsigned int | sx, | |
unsigned int | sy, | |||
unsigned char * | src | |||
) |
Definition at line 182 of file obj_actnpts.c.
short create_actnpt_number_used_arr | ( | const struct LEVEL * | lvl, | |
unsigned char ** | used, | |||
unsigned int * | used_size | |||
) |
Definition at line 251 of file obj_actnpts.c.
Referenced by dkscript_verify(), get_free_actnpt_number_next(), and get_free_actnpt_number_prev().
unsigned char* create_stlight | ( | unsigned int | sx, | |
unsigned int | sy | |||
) |
Definition at line 430 of file obj_actnpts.c.
unsigned char* create_stlight_copy | ( | unsigned int | sx, | |
unsigned int | sy, | |||
unsigned char * | src | |||
) |
Definition at line 459 of file obj_actnpts.c.
unsigned long get_actnpt_distance_adv | ( | const unsigned char * | actnpt, | |
const int | ssx, | |||
const int | ssy | |||
) |
Returns distance between given action point and another map point.
actnpt | The action point which position defines first point. | |
ssx,ssy | Coordinates of the second point ("_adv" form). |
Definition at line 481 of file obj_actnpts.c.
Referenced by get_nearest_object_idx().
unsigned short get_actnpt_number | ( | unsigned char * | actnpt | ) |
Definition at line 134 of file obj_actnpts.c.
Referenced by actnpts_verify(), and create_actnpt_number_used_arr().
unsigned short get_actnpt_pos_x_adv | ( | const unsigned char * | actnpt | ) |
unsigned short get_actnpt_pos_y_adv | ( | const unsigned char * | actnpt | ) |
unsigned int get_actnpt_range_adv | ( | unsigned char * | actnpt | ) |
unsigned char get_actnpt_range_subtile | ( | unsigned char * | actnpt | ) |
Definition at line 58 of file obj_actnpts.c.
Referenced by actnpts_verify(), and get_actnpt_range_adv().
unsigned char get_actnpt_range_subtpos | ( | unsigned char * | actnpt | ) |
unsigned char get_actnpt_subtile_x | ( | unsigned char * | actnpt | ) |
unsigned char get_actnpt_subtile_y | ( | unsigned char * | actnpt | ) |
unsigned char get_actnpt_subtpos_x | ( | unsigned char * | actnpt | ) |
unsigned char get_actnpt_subtpos_y | ( | unsigned char * | actnpt | ) |
unsigned short get_free_actnpt_number | ( | const struct LEVEL * | lvl | ) |
unsigned short get_free_actnpt_number_next | ( | const struct LEVEL * | lvl, | |
const unsigned short | start | |||
) |
unsigned short get_free_actnpt_number_prev | ( | const struct LEVEL * | lvl, | |
const unsigned short | start | |||
) |
Definition at line 229 of file obj_actnpts.c.
unsigned long get_stlight_distance_adv | ( | const unsigned char * | stlight, | |
const int | ssx, | |||
const int | ssy | |||
) |
Returns distance between given static light and another map point.
stlight | The light which position defines first point. | |
ssx,ssy | Coordinates of the second point ("_adv" form). |
Definition at line 495 of file obj_actnpts.c.
Referenced by get_nearest_object_idx().
unsigned char get_stlight_intensivity | ( | unsigned char * | stlight | ) |
Definition at line 413 of file obj_actnpts.c.
unsigned short get_stlight_pos_x_adv | ( | const unsigned char * | stlight | ) |
unsigned short get_stlight_pos_y_adv | ( | const unsigned char * | stlight | ) |
unsigned int get_stlight_range_adv | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_range_subtile | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_range_subtpos | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_subtile_h | ( | unsigned char * | stlight | ) |
Definition at line 313 of file obj_actnpts.c.
unsigned char get_stlight_subtile_x | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_subtile_y | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_subtpos_h | ( | unsigned char * | stlight | ) |
Definition at line 368 of file obj_actnpts.c.
unsigned char get_stlight_subtpos_x | ( | unsigned char * | stlight | ) |
unsigned char get_stlight_subtpos_y | ( | unsigned char * | stlight | ) |
short set_actnpt_number | ( | unsigned char * | actnpt, | |
unsigned short | apt_num | |||
) |
short set_actnpt_range_subtile | ( | unsigned char * | actnpt, | |
unsigned char | rng_tl | |||
) |
short set_actnpt_range_subtpos | ( | unsigned char * | actnpt, | |
unsigned char | rng_st | |||
) |
Definition at line 128 of file obj_actnpts.c.
short set_actnpt_subtile | ( | unsigned char * | actnpt, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 51 of file obj_actnpts.c.
Referenced by create_actnpt(), and create_actnpt_copy().
short set_actnpt_subtile_x | ( | unsigned char * | actnpt, | |
unsigned char | pos_x | |||
) |
Definition at line 33 of file obj_actnpts.c.
short set_actnpt_subtile_y | ( | unsigned char * | actnpt, | |
unsigned char | pos_y | |||
) |
Definition at line 45 of file obj_actnpts.c.
short set_actnpt_subtpos | ( | unsigned char * | actnpt, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 115 of file obj_actnpts.c.
Referenced by create_actnpt(), and create_actnpt_copy().
short set_actnpt_subtpos_x | ( | unsigned char * | actnpt, | |
unsigned char | pos_x | |||
) |
Definition at line 91 of file obj_actnpts.c.
short set_actnpt_subtpos_y | ( | unsigned char * | actnpt, | |
unsigned char | pos_y | |||
) |
Definition at line 109 of file obj_actnpts.c.
short set_stlight_intensivity | ( | unsigned char * | stlight, | |
unsigned char | intens | |||
) |
short set_stlight_range_subtile | ( | unsigned char * | stlight, | |
unsigned char | rng_tl | |||
) |
short set_stlight_range_subtpos | ( | unsigned char * | stlight, | |
unsigned char | rng_st | |||
) |
short set_stlight_subtile | ( | unsigned char * | stlight, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 306 of file obj_actnpts.c.
Referenced by create_stlight(), and create_stlight_copy().
short set_stlight_subtile_h | ( | unsigned char * | stlight, | |
unsigned char | pos_h | |||
) |
short set_stlight_subtile_x | ( | unsigned char * | stlight, | |
unsigned char | pos_x | |||
) |
Definition at line 288 of file obj_actnpts.c.
short set_stlight_subtile_y | ( | unsigned char * | stlight, | |
unsigned char | pos_y | |||
) |
Definition at line 300 of file obj_actnpts.c.
short set_stlight_subtpos | ( | unsigned char * | stlight, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 361 of file obj_actnpts.c.
Referenced by create_stlight(), and create_stlight_copy().
short set_stlight_subtpos_h | ( | unsigned char * | stlight, | |
unsigned char | pos_h | |||
) |
Definition at line 374 of file obj_actnpts.c.
short set_stlight_subtpos_x | ( | unsigned char * | stlight, | |
unsigned char | pos_x | |||
) |
Definition at line 337 of file obj_actnpts.c.
short set_stlight_subtpos_y | ( | unsigned char * | stlight, | |
unsigned char | pos_y | |||
) |
Definition at line 355 of file obj_actnpts.c.