- Created constants for the number of monster and terrain sheets, so that we can easily add more. - Added init_sheets() function to initialize cPict's static variables. - Moved the code for checking for an interrupt key out into a separate function so that it can be used elsewhere as well. - Added error checking to make sure a sheet exists before drawing from it. (Note: Will need to catch the exception and draw a blank rather than simply terminating.) - Fixed bug where status icons were drawn instead of terrain map icons. git-svn-id: http://openexile.googlecode.com/svn/trunk@99 4ebdad44-0ea0-11de-aab3-ff745001d230
31 lines
988 B
C
31 lines
988 B
C
void init_screen_locs();
|
|
bool prime_time();
|
|
bool handle_action(EventRecord event);
|
|
bool someone_awake();
|
|
void flash_rect(Rect to_flash);
|
|
void flash_round_rect(Rect to_flash,short radius);
|
|
void button_flash_rect(Rect to_flash);
|
|
void handle_menu_spell(short spell_picked,short spell_type) ;
|
|
void initiate_outdoor_combat(short i);
|
|
bool handle_keystroke(char chr,char chr2,EventRecord event);
|
|
void menu_activate( short type);
|
|
void do_load();
|
|
void post_load();
|
|
void do_save(short mode);
|
|
void increase_age();
|
|
void handle_cave_lore();
|
|
void switch_pc(short which);
|
|
void drop_pc(short which);
|
|
void handle_death();
|
|
void start_new_game();
|
|
location get_cur_direction(Point the_point);
|
|
bool outd_move_party(location destination,bool forced);
|
|
bool town_move_party(location destination,short forced);
|
|
bool someone_poisoned();
|
|
short nearest_monster();
|
|
void setup_outdoors(location where);
|
|
short get_outdoor_num();
|
|
short count_walls(location loc);
|
|
bool is_sign(ter_num_t ter);
|
|
bool check_for_interrupt();
|