obj_actnpts.h File Reference

#include "globals.h"

Go to the source code of this file.

Functions

DLLIMPORT unsigned char get_actnpt_subtile_x (unsigned char *actnpt)
DLLIMPORT short set_actnpt_subtile_x (unsigned char *actnpt, unsigned char pos_x)
DLLIMPORT unsigned char get_actnpt_subtile_y (unsigned char *actnpt)
DLLIMPORT short set_actnpt_subtile_y (unsigned char *actnpt, unsigned char pos_y)
DLLIMPORT unsigned char get_actnpt_range_subtile (unsigned char *actnpt)
DLLIMPORT short set_actnpt_range_subtile (unsigned char *actnpt, unsigned char rng_tl)
DLLIMPORT short set_actnpt_subtile (unsigned char *actnpt, unsigned char pos_x, unsigned char pos_y)
DLLIMPORT unsigned char get_actnpt_subtpos_x (unsigned char *actnpt)
DLLIMPORT unsigned short get_actnpt_pos_x_adv (const unsigned char *actnpt)
DLLIMPORT short set_actnpt_subtpos_x (unsigned char *actnpt, unsigned char pos_x)
DLLIMPORT unsigned char get_actnpt_subtpos_y (unsigned char *actnpt)
DLLIMPORT short set_actnpt_subtpos_y (unsigned char *actnpt, unsigned char pos_y)
DLLIMPORT unsigned short get_actnpt_pos_y_adv (const unsigned char *actnpt)
DLLIMPORT unsigned char get_actnpt_range_subtpos (unsigned char *actnpt)
DLLIMPORT short set_actnpt_range_subtpos (unsigned char *actnpt, unsigned char rng_st)
DLLIMPORT unsigned int get_actnpt_range_adv (unsigned char *actnpt)
DLLIMPORT short set_actnpt_subtpos (unsigned char *actnpt, unsigned char pos_x, unsigned char pos_y)
DLLIMPORT unsigned short get_actnpt_number (unsigned char *actnpt)
DLLIMPORT short set_actnpt_number (unsigned char *actnpt, unsigned short apt_num)
DLLIMPORT unsigned char * create_actnpt (struct LEVEL *lvl, unsigned int sx, unsigned int sy)
DLLIMPORT unsigned char * create_actnpt_copy (unsigned int sx, unsigned int sy, unsigned char *src)
DLLIMPORT unsigned short get_free_actnpt_number (const struct LEVEL *lvl)
DLLIMPORT unsigned short get_free_actnpt_number_next (const struct LEVEL *lvl, const unsigned short start)
DLLIMPORT unsigned short get_free_actnpt_number_prev (const struct LEVEL *lvl, const unsigned short start)
DLLIMPORT short create_actnpt_number_used_arr (const struct LEVEL *lvl, unsigned char **used, unsigned int *used_size)
DLLIMPORT 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.
DLLIMPORT unsigned char get_stlight_subtile_x (unsigned char *stlight)
DLLIMPORT short set_stlight_subtile_x (unsigned char *stlight, unsigned char pos_x)
DLLIMPORT unsigned char get_stlight_subtile_y (unsigned char *stlight)
DLLIMPORT short set_stlight_subtile_y (unsigned char *stlight, unsigned char pos_y)
DLLIMPORT short set_stlight_subtile (unsigned char *stlight, unsigned char pos_x, unsigned char pos_y)
DLLIMPORT unsigned char get_stlight_subtile_h (unsigned char *stlight)
DLLIMPORT short set_stlight_subtile_h (unsigned char *stlight, unsigned char pos_h)
DLLIMPORT unsigned char get_stlight_subtpos_x (unsigned char *stlight)
DLLIMPORT unsigned short get_stlight_pos_x_adv (const unsigned char *stlight)
DLLIMPORT short set_stlight_subtpos_x (unsigned char *stlight, unsigned char pos_x)
DLLIMPORT unsigned char get_stlight_subtpos_y (unsigned char *stlight)
DLLIMPORT unsigned short get_stlight_pos_y_adv (const unsigned char *stlight)
DLLIMPORT short set_stlight_subtpos_y (unsigned char *stlight, unsigned char pos_y)
DLLIMPORT short set_stlight_subtpos (unsigned char *stlight, unsigned char pos_x, unsigned char pos_y)
DLLIMPORT unsigned char get_stlight_subtpos_h (unsigned char *stlight)
DLLIMPORT short set_stlight_subtpos_h (unsigned char *stlight, unsigned char pos_h)
DLLIMPORT unsigned char get_stlight_range_subtile (unsigned char *stlight)
DLLIMPORT short set_stlight_range_subtile (unsigned char *stlight, unsigned char rng_tl)
DLLIMPORT unsigned char get_stlight_range_subtpos (unsigned char *stlight)
DLLIMPORT short set_stlight_range_subtpos (unsigned char *stlight, unsigned char rng_st)
DLLIMPORT unsigned int get_stlight_range_adv (unsigned char *stlight)
DLLIMPORT unsigned char get_stlight_intensivity (unsigned char *stlight)
DLLIMPORT short set_stlight_intensivity (unsigned char *stlight, unsigned char intens)
DLLIMPORT unsigned char * create_stlight (unsigned int sx, unsigned int sy)
DLLIMPORT unsigned char * create_stlight_copy (unsigned int sx, unsigned int sy, unsigned char *src)
DLLIMPORT 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.


Function Documentation

DLLIMPORT unsigned char* create_actnpt ( struct LEVEL lvl,
unsigned int  sx,
unsigned int  sy 
)

Definition at line 152 of file obj_actnpts.c.

DLLIMPORT unsigned char* create_actnpt_copy ( unsigned int  sx,
unsigned int  sy,
unsigned char *  src 
)

Definition at line 182 of file obj_actnpts.c.

DLLIMPORT short create_actnpt_number_used_arr ( const struct LEVEL lvl,
unsigned char **  used,
unsigned int *  used_size 
)

DLLIMPORT unsigned char* create_stlight ( unsigned int  sx,
unsigned int  sy 
)

Definition at line 430 of file obj_actnpts.c.

DLLIMPORT unsigned char* create_stlight_copy ( unsigned int  sx,
unsigned int  sy,
unsigned char *  src 
)

Definition at line 459 of file obj_actnpts.c.

DLLIMPORT 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.

Parameters:
actnpt The action point which position defines first point.
ssx,ssy Coordinates of the second point ("_adv" form).
Returns:
Returns distance in "_adv" form.

Definition at line 481 of file obj_actnpts.c.

Referenced by get_nearest_object_idx().

DLLIMPORT 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().

DLLIMPORT unsigned short get_actnpt_pos_x_adv ( const unsigned char *  actnpt  ) 

Definition at line 85 of file obj_actnpts.c.

Referenced by get_actnpt_distance_adv().

DLLIMPORT unsigned short get_actnpt_pos_y_adv ( const unsigned char *  actnpt  ) 

Definition at line 103 of file obj_actnpts.c.

Referenced by get_actnpt_distance_adv().

DLLIMPORT unsigned int get_actnpt_range_adv ( unsigned char *  actnpt  ) 

Definition at line 73 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT 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().

DLLIMPORT unsigned char get_actnpt_range_subtpos ( unsigned char *  actnpt  ) 

Definition at line 122 of file obj_actnpts.c.

Referenced by get_actnpt_range_adv().

DLLIMPORT unsigned char get_actnpt_subtile_x ( unsigned char *  actnpt  ) 

Definition at line 27 of file obj_actnpts.c.

Referenced by actnpt_add(), and actnpts_verify().

DLLIMPORT unsigned char get_actnpt_subtile_y ( unsigned char *  actnpt  ) 

Definition at line 39 of file obj_actnpts.c.

Referenced by actnpt_add(), and actnpts_verify().

DLLIMPORT unsigned char get_actnpt_subtpos_x ( unsigned char *  actnpt  ) 

Definition at line 79 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT unsigned char get_actnpt_subtpos_y ( unsigned char *  actnpt  ) 

Definition at line 97 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT unsigned short get_free_actnpt_number ( const struct LEVEL lvl  ) 

Definition at line 200 of file obj_actnpts.c.

Referenced by create_actnpt().

DLLIMPORT unsigned short get_free_actnpt_number_next ( const struct LEVEL lvl,
const unsigned short  start 
)

Definition at line 209 of file obj_actnpts.c.

Referenced by get_free_actnpt_number().

DLLIMPORT unsigned short get_free_actnpt_number_prev ( const struct LEVEL lvl,
const unsigned short  start 
)

Definition at line 229 of file obj_actnpts.c.

DLLIMPORT 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.

Parameters:
stlight The light which position defines first point.
ssx,ssy Coordinates of the second point ("_adv" form).
Returns:
Returns distance in "_adv" form.

Definition at line 495 of file obj_actnpts.c.

Referenced by get_nearest_object_idx().

DLLIMPORT unsigned char get_stlight_intensivity ( unsigned char *  stlight  ) 

Definition at line 413 of file obj_actnpts.c.

DLLIMPORT unsigned short get_stlight_pos_x_adv ( const unsigned char *  stlight  ) 

Definition at line 331 of file obj_actnpts.c.

Referenced by get_stlight_distance_adv().

DLLIMPORT unsigned short get_stlight_pos_y_adv ( const unsigned char *  stlight  ) 

Definition at line 349 of file obj_actnpts.c.

Referenced by get_stlight_distance_adv().

DLLIMPORT unsigned int get_stlight_range_adv ( unsigned char *  stlight  ) 

Definition at line 407 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT unsigned char get_stlight_range_subtile ( unsigned char *  stlight  ) 

Definition at line 380 of file obj_actnpts.c.

Referenced by get_stlight_range_adv().

DLLIMPORT unsigned char get_stlight_range_subtpos ( unsigned char *  stlight  ) 

Definition at line 392 of file obj_actnpts.c.

Referenced by get_stlight_range_adv().

DLLIMPORT unsigned char get_stlight_subtile_h ( unsigned char *  stlight  ) 

Definition at line 313 of file obj_actnpts.c.

DLLIMPORT unsigned char get_stlight_subtile_x ( unsigned char *  stlight  ) 

Definition at line 282 of file obj_actnpts.c.

Referenced by stlight_add().

DLLIMPORT unsigned char get_stlight_subtile_y ( unsigned char *  stlight  ) 

Definition at line 294 of file obj_actnpts.c.

Referenced by stlight_add().

DLLIMPORT unsigned char get_stlight_subtpos_h ( unsigned char *  stlight  ) 

Definition at line 368 of file obj_actnpts.c.

DLLIMPORT unsigned char get_stlight_subtpos_x ( unsigned char *  stlight  ) 

Definition at line 325 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT unsigned char get_stlight_subtpos_y ( unsigned char *  stlight  ) 

Definition at line 343 of file obj_actnpts.c.

Referenced by draw_things_on_buffer().

DLLIMPORT short set_actnpt_number ( unsigned char *  actnpt,
unsigned short  apt_num 
)

Definition at line 140 of file obj_actnpts.c.

Referenced by create_actnpt().

DLLIMPORT short set_actnpt_range_subtile ( unsigned char *  actnpt,
unsigned char  rng_tl 
)

Definition at line 64 of file obj_actnpts.c.

Referenced by create_actnpt().

DLLIMPORT short set_actnpt_range_subtpos ( unsigned char *  actnpt,
unsigned char  rng_st 
)

Definition at line 128 of file obj_actnpts.c.

DLLIMPORT 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().

DLLIMPORT short set_actnpt_subtile_x ( unsigned char *  actnpt,
unsigned char  pos_x 
)

Definition at line 33 of file obj_actnpts.c.

DLLIMPORT short set_actnpt_subtile_y ( unsigned char *  actnpt,
unsigned char  pos_y 
)

Definition at line 45 of file obj_actnpts.c.

DLLIMPORT 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().

DLLIMPORT short set_actnpt_subtpos_x ( unsigned char *  actnpt,
unsigned char  pos_x 
)

Definition at line 91 of file obj_actnpts.c.

DLLIMPORT short set_actnpt_subtpos_y ( unsigned char *  actnpt,
unsigned char  pos_y 
)

Definition at line 109 of file obj_actnpts.c.

DLLIMPORT short set_stlight_intensivity ( unsigned char *  stlight,
unsigned char  intens 
)

Definition at line 419 of file obj_actnpts.c.

Referenced by create_stlight().

DLLIMPORT short set_stlight_range_subtile ( unsigned char *  stlight,
unsigned char  rng_tl 
)

Definition at line 386 of file obj_actnpts.c.

Referenced by create_stlight().

DLLIMPORT short set_stlight_range_subtpos ( unsigned char *  stlight,
unsigned char  rng_st 
)

Definition at line 398 of file obj_actnpts.c.

Referenced by create_stlight().

DLLIMPORT 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().

DLLIMPORT short set_stlight_subtile_h ( unsigned char *  stlight,
unsigned char  pos_h 
)

Definition at line 319 of file obj_actnpts.c.

Referenced by create_stlight().

DLLIMPORT short set_stlight_subtile_x ( unsigned char *  stlight,
unsigned char  pos_x 
)

Definition at line 288 of file obj_actnpts.c.

DLLIMPORT short set_stlight_subtile_y ( unsigned char *  stlight,
unsigned char  pos_y 
)

Definition at line 300 of file obj_actnpts.c.

DLLIMPORT 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().

DLLIMPORT short set_stlight_subtpos_h ( unsigned char *  stlight,
unsigned char  pos_h 
)

Definition at line 374 of file obj_actnpts.c.

DLLIMPORT short set_stlight_subtpos_x ( unsigned char *  stlight,
unsigned char  pos_x 
)

Definition at line 337 of file obj_actnpts.c.

DLLIMPORT short set_stlight_subtpos_y ( unsigned char *  stlight,
unsigned char  pos_y 
)

Definition at line 355 of file obj_actnpts.c.


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