Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

Odevelop.h Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Odevelop.h

Go to the documentation of this file.
00001 //Filename    : ODEVELOP.H
00002 //Description : Athletics Office Class Declaration
00003 //Owner           : Kevin(ho)
00004 
00005 #ifndef __ODEVELOP_H
00006 #define __ODEVELOP_H
00007 
00008 //##### begin fred 980803 #####//
00009 #include <GAMEDEF.h>
00010 
00013 struct GiftComponent {
00014     float total;
00015 
00016     float cur_operations;
00017     float endowment;
00018     float facilities;
00019 };
00020 //##### end fred 980803 #####//
00021 
00022 //----------- Define class Development --------------//
00023 //
00026 class Development {
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     //##### begin fred 980803 #####//
00038     int     write_file(File* filePtr);
00039     int     read_file(File* filePtr);
00040 
00041     //----- vars and methods related to simulation and statistics
00042 public:
00043     //### begin zhoubin 02/25/99
00044     float spinner_var1;
00045     //### end zhoubin 02/25/99
00046     // allocation_policy: 0.3 => 30%
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];     // revenue and expense of the office
00055 
00056     float initializationValueAC_INST_ADVANCEMENT;
00057 
00058     //## chea 191099 try to display the total gifts
00059     float gift_total_next_year;
00060     float gift_change_last_year;
00061     float gift_change_next_year;
00062 
00063     //## chea 091299 7.2.3 should add change here
00064     //  float this_year_total_up2date;
00065 
00066     // ##### Begin MArco ##### //
00067 #if(GAME_VERSION>=200)
00068     float initial_percent_alumni_gave_gift;
00069     float initial_alumni_morale;
00070     float initial_gift_total;
00071     //  GiftComponent   initial_last_year;
00072     float initial_last_year_endowment;
00073 #endif
00074     // ##### End Marco ##### //
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     //float     next_month_total_gift;
00086 
00087 public:
00088     void  init_data();
00089     void  next_day();
00090 
00091     void  calc_alumni_morale();
00092 
00093     // ##### Begin Marco ##### //
00094 #if(GAME_VERSION>=200)
00095     void save_initial_data();
00096 #endif
00097     // ##### End Marco ##### //
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

Generated on Fri Aug 23 01:37:25 2002 for VirtualU by doxygen1.2.17