Some other tweaks and fixes got pulled in along the way. Details: - Improved const-correctness - The scenario is now part of the universe, so now there's no global scenario object in the game or the PC editor. (Of course, the scenario editor has no universe, so it still has a global scenario object.) - Towns and outdoors now store a reference to the scenario; the party, current town, and current outdoors store a reference to the universe. Altogether this means that the data module has no need for global scenario or universe objects. - The fileio routines now take a scenario or universe reference as a parameter, so they don't need the global scenario or universe objects either. - cCurOut now has an arrow operator for accessing the current outdoor section, instead of a 2x2 subset of the outdoors; this replaces using i_w_c to index the 2x2 subset. (And it's much less verbose!) - cCurTown no longer stores a pointer to the town record, since it can simply access it through the universe instance which it stores a reference to. - Tweaked how the monster roster menu works (it now caches up to 60 monsters) - The operator= functions that convert from legacy to new scenario/save format are now ordinary functions rather than operators. - The bizarre use of assigning a cCreature to itself to populate certain fields has been nuked. - When at the corner of an outdoor sector, the scenario editor now shows the cornermost terrain in the diagonally adjacent sector. - There was a missing check to prevent horses entering dangerous terrain (eg, swamp) while in town. - Fix cancelling load party dialog causing a party to appear
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
|
|
class cDialog;
|
|
|
|
short edit_ter_type(ter_num_t which_ter);
|
|
short edit_monst_type(short which_monst);
|
|
cMonster edit_monst_abil(cMonster starting_record,short parent_num);
|
|
short edit_item_type(short which_item);
|
|
cItemRec edit_item_abil(cItemRec starting_record,short parent_num);
|
|
void edit_spec_item(short which_item);
|
|
void edit_save_rects();
|
|
void edit_horses();
|
|
void edit_add_town();
|
|
void edit_item_placement();
|
|
void edit_scen_details();
|
|
bool edit_make_scen_2(short& out_w, short& out_h, short& town_l, short& town_m, short& town_s, bool& def_town);
|
|
bool edit_make_scen_1(std::string& filename,std::string& title,bool& grass);
|
|
void edit_scenario_events();
|
|
bool build_scenario();
|
|
void set_starting_loc();
|
|
void edit_boats();
|
|
|
|
bool check_range_msg(cDialog& me,std::string id,bool losing,long min_val,long max_val,std::string fld_name,std::string xtra);
|
|
bool check_range(cDialog& me,std::string id,bool losing,long min_val,long max_val,std::string fld_name);
|
|
bool pick_string(std::string from_file, cDialog& parent, std::string result_fld, std::string str_fld);
|