- Fixed some bugs in the dialog code.

- Dialogs in the scenario editor now show custom graphics.
- Scenario editor now works properly as a Universal binary.
- Started refactoring the structs into classes; so far this has only been applied to the game.
- Files now show proper icons (applications already did).
- Probably other things that I have forgotten.

Still not completely stable, but much closer.

git-svn-id: http://openexile.googlecode.com/svn/trunk@27 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-21 20:02:07 +00:00
parent 7573c1ed98
commit a2c2a85a8e
63 changed files with 1741 additions and 1267 deletions

View File

@@ -1,6 +1,5 @@
void sort_pc_items(short pc_num);
Boolean give_to_pc(short pc_num,item_record_type item,short print_result);
Boolean give_to_party(item_record_type item,short print_result);
bool give_to_pc(short pc_num,cItemRec item,short print_result);
Boolean forced_give(short item_num,short abil);
Boolean GTP(short item_num);
Boolean silent_GTP(short item_num);
@@ -11,24 +10,23 @@ short pc_has_abil(short pc_num,short abil);
Boolean party_has_abil(short abil);
Boolean party_take_abil(short abil);
Boolean party_check_class(short item_class,short mode);
short item_weight(item_record_type item);
short pc_carry_weight(short pc_num);
short amount_pc_can_carry(short pc_num);
void give_food(short amount,Boolean print_result);
short take_food(short amount,Boolean print_result);
short pc_has_space(short pc_num);
short pc_ok_to_buy(short pc_num,short cost,item_record_type item);
short pc_ok_to_buy(short pc_num,short cost,cItemRec item);
void take_item(short pc_num,short which_item);
void remove_charge(short pc_num,short which_item);
void enchant_weapon(short pc_num,short item_hit,short enchant_type,short new_val);
void equip_item(short pc_num,short item_num);
void drop_item(short pc_num,short item_num,location where_drop);
Boolean place_item(item_record_type item,location where,Boolean forced);
bool place_item(cItemRec item,location where,bool forced);
void destroy_an_item();
void give_thing(short pc_num, short item_num);
void combine_things(short pc_num);
short dist_from_party(location where);
void set_item_flag(item_record_type *item);
void set_item_flag(cItemRec *item);
short get_item(location place,short pc_num,Boolean check_container);
void put_item_graphics();
short get_prot_level(short pc_num,short abil);
@@ -55,10 +53,11 @@ DialogPtr other_make_dialog(short which);
void place_glands(location where,unsigned char m_type);
short party_total_level() ;
void reset_item_max();
short item_val(item_record_type item);
short item_val(cItemRec item);
bool give_to_party(cItemRec item, short print_result);
void place_treasure(location where,short level,short loot,short mode);
short luck_total();
item_record_type return_treasure(short loot,short level,short mode);
cItemRec return_treasure(short loot,short level,short mode);
void frame_button(Rect button_rect);
void refresh_store_items();
void get_text_response_event_filter (short item_hit);