mirror of
https://github.com/Relintai/mourne_rcpp_fw.git
synced 2024-11-13 05:57:21 +01:00
Added an another setter to Building, and fixed a parameter's type.
This commit is contained in:
parent
37532f6275
commit
28d88335e6
@ -29,7 +29,7 @@ void Building::set_mod_max(int p_mod_max_food, int p_mod_max_wood, int p_mod_max
|
||||
mod_max_iron = p_mod_max_iron;
|
||||
mod_max_mana = p_mod_max_mana;
|
||||
}
|
||||
void Building::set_mod_rate(int p_mod_rate_food, int p_mod_rate_wood, int p_mod_rate_stone, int p_mod_rate_iron, int p_mod_rate_mana) {
|
||||
void Building::set_mod_rate(double p_mod_rate_food, double p_mod_rate_wood, double p_mod_rate_stone, double p_mod_rate_iron, double p_mod_rate_mana) {
|
||||
mod_rate_food = p_mod_rate_food;
|
||||
mod_rate_wood = p_mod_rate_wood;
|
||||
mod_rate_stone = p_mod_rate_stone;
|
||||
@ -56,6 +56,26 @@ void Building::set_technologies(int p_req_tech, int p_tech_group, int p_tech_sec
|
||||
tech_secondary_group = p_tech_secondary_group;
|
||||
}
|
||||
|
||||
void Building::set_all(
|
||||
const String &p_name, const String &p_description, const String &p_icon,
|
||||
int p_rank, int p_next_rank, int p_time_to_build, int p_creates, int p_num_creates, int p_score, int p_defense, int p_ability,
|
||||
int p_cost_food, int p_cost_wood, int p_cost_stone, int p_cost_iron, int p_cost_mana,
|
||||
int p_mod_max_food, int p_mod_max_wood, int p_mod_max_stone, int p_mod_max_iron, int p_mod_max_mana,
|
||||
double p_mod_rate_food, double p_mod_rate_wood, double p_mod_rate_stone, double p_mod_rate_iron, double p_mod_rate_mana,
|
||||
int p_mod_percent_food, int p_mod_percent_wood, int p_mod_percent_stone, int p_mod_percent_iron, int p_mod_percent_mana,
|
||||
int p_assignment1, int p_assignment2, int p_assignment3, int p_assignment4, int p_assignment5,
|
||||
int p_req_tech, int p_tech_group, int p_tech_secondary_group) {
|
||||
|
||||
set_strings(p_name, p_description, p_icon);
|
||||
set_base_data(p_rank, p_next_rank, p_time_to_build, p_creates, p_num_creates, p_score, p_defense, p_ability);
|
||||
set_cost(p_cost_food, p_cost_wood, p_cost_stone, p_cost_iron, p_cost_mana);
|
||||
set_mod_max(p_mod_max_food, p_mod_max_wood, p_mod_max_stone, p_mod_max_iron, p_mod_max_mana);
|
||||
set_mod_rate(p_mod_rate_food, p_mod_rate_wood, p_mod_rate_stone, p_mod_rate_iron, p_mod_rate_mana);
|
||||
set_mod_percent(p_mod_percent_food, p_mod_percent_wood, p_mod_percent_stone, p_mod_percent_iron, p_mod_percent_mana);
|
||||
set_assignments(p_assignment1, p_assignment2, p_assignment3, p_assignment4, p_assignment5);
|
||||
set_technologies(p_req_tech, p_tech_group, p_tech_secondary_group);
|
||||
}
|
||||
|
||||
Building::Building() :
|
||||
Resource() {
|
||||
|
||||
|
@ -60,11 +60,21 @@ public:
|
||||
void set_base_data(int p_rank, int p_next_rank, int p_time_to_build, int p_creates, int p_num_creates, int p_score, int p_defense, int p_ability);
|
||||
void set_cost(int p_cost_food, int p_cost_wood, int p_cost_stone, int p_cost_iron, int p_cost_mana);
|
||||
void set_mod_max(int p_mod_max_food, int p_mod_max_wood, int p_mod_max_stone, int p_mod_max_iron, int p_mod_max_mana);
|
||||
void set_mod_rate(int p_mod_rate_food, int p_mod_rate_wood, int p_mod_rate_stone, int p_mod_rate_iron, int p_mod_rate_mana);
|
||||
void set_mod_rate(double p_mod_rate_food, double p_mod_rate_wood, double p_mod_rate_stone, double p_mod_rate_iron, double p_mod_rate_mana);
|
||||
void set_mod_percent(int p_mod_percent_food, int p_mod_percent_wood, int p_mod_percent_stone, int p_mod_percent_iron, int p_mod_percent_mana);
|
||||
void set_assignments(int p_assignment1, int p_assignment2, int p_assignment3, int p_assignment4, int p_assignment5);
|
||||
void set_technologies(int p_req_tech, int p_tech_group, int p_tech_secondary_group);
|
||||
|
||||
void set_all(
|
||||
const String &p_name, const String &p_description, const String &p_icon,
|
||||
int p_rank, int p_next_rank, int p_time_to_build, int p_creates, int p_num_creates, int p_score, int p_defense, int p_ability,
|
||||
int p_cost_food, int p_cost_wood, int p_cost_stone, int p_cost_iron, int p_cost_mana,
|
||||
int p_mod_max_food, int p_mod_max_wood, int p_mod_max_stone, int p_mod_max_iron, int p_mod_max_mana,
|
||||
double p_mod_rate_food, double p_mod_rate_wood, double p_mod_rate_stone, double p_mod_rate_iron, double p_mod_rate_mana,
|
||||
int p_mod_percent_food, int p_mod_percent_wood, int p_mod_percent_stone, int p_mod_percent_iron, int p_mod_percent_mana,
|
||||
int p_assignment1, int p_assignment2, int p_assignment3, int p_assignment4, int p_assignment5,
|
||||
int p_req_tech, int p_tech_group, int p_tech_secondary_group);
|
||||
|
||||
Building();
|
||||
~Building();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user