00001
00002
00003
00004
00005 #ifndef __ODEVELOP_H
00006 #define __ODEVELOP_H
00007
00008
00009 #include <GAMEDEF.h>
00010
00013 struct GiftComponent {
00014 float total;
00015
00016 float cur_operations;
00017 float endowment;
00018 float facilities;
00019 };
00020
00021
00022
00023
00026
00027 public:
00028 Development();
00029 ~Development();
00030 void init();
00031 void deinit();
00032 void report(int);
00033 int detect();
00034 int detect2();
00035
00036 char current_mode;
00037
00038 int write_file(File* filePtr);
00039 int read_file(File* filePtr);
00040
00041
00042 public:
00043
00044 float spinner_var1;
00045
00046
00047 GiftComponent this_year, last_year, allocation_policy;
00048
00049 float percent_alumni_gave_gift;
00050 float alumni_morale;
00051
00052 float percent_alumni_gave_gift_history[HISTORY_YEAR_COUNT];
00053 float alumni_morale_history[HISTORY_YEAR_COUNT];
00054 float history_value[HISTORY_YEAR_COUNT2];
00055
00056 float initializationValueAC_INST_ADVANCEMENT;
00057
00058
00059 float gift_total_next_year;
00060 float gift_change_last_year;
00061 float gift_change_next_year;
00062
00063
00064
00065
00066
00067 #if(GAME_VERSION>=200)
00068 float initial_percent_alumni_gave_gift;
00069 float initial_alumni_morale;
00070 float initial_gift_total;
00071
00072 float initial_last_year_endowment;
00073 #endif
00074
00075
00076 private:
00077 int init_inst_advancement;
00078 int init_prestige;
00079
00080 char multiplier_alumni;
00081
00082 public:
00083 float gift_growth_rate;
00084 float this_month_total_gift;
00085
00086
00087 public:
00088 void init_data();
00089 void next_day();
00090
00091 void calc_alumni_morale();
00092
00093
00094 #if(GAME_VERSION>=200)
00095 void save_initial_data();
00096 #endif
00097
00098
00099 private:
00100 void update_history(char update_flag);
00101 void update_history_sub();
00102 void calc_gift_growth_rate();
00103 void calc_gift_all();
00104 void calc_percent_alumni_gave_gift();
00105 };
00106
00107 extern Development development_office;
00108
00109
00110 #endif