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

Password:

OCOURSE.CPP Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OCOURSE.CPP

Go to the documentation of this file.
00001 //Filename    : OCOURSE.CPP
00002 //Description : Course Class Definition
00003 
00004 #include <OPSCHOOL.H>
00005 #include <OCOURSE.H>
00006 #include <ODEPT.H>
00007 #include <ODEPTRES.H>
00008 #include <OCOURRES.H>
00009 
00010 //------ Begin of function Course::normal_class_size -------//
00011 
00012 int Course::normal_class_size() {
00013     int deptId = department_array[department_recno]->department_id;
00014 
00015     if ( teaching_method == DISTANCE_LEARN_COURSE )
00016         return department_res[deptId]->max_dl_class_size;
00017     else
00018         return course_res.get_normal_class_size(department_res[deptId]->template_course_type, teaching_method);
00019 }
00020 
00021 //------ End function Course::normal_class_size -------//
00022 
00023 //------ Begin of function Course::next_trimester -------//
00024 
00025 void Course::next_trimester() {
00026     reset_vars();
00027 }
00028 
00029 //------ End function Course::next_trimester -------//
00030 
00031 //------ Begin of function Course::reset_vars -------//
00032 
00033 void Course::reset_vars() {
00034     is_closed = 0;
00035     convention_student_count = 0;
00036     //convention_student_distance_learner_count = 0;
00037     distance_student_count   = 0;
00038 
00039     admission_denied_count   = 0;
00040     failure_count        = 0;
00041 
00042 #if(GAME_VERSION>=200)
00043     outsourcing_credits    = 0;
00044 #endif
00045 
00046     class_section_count      = 0;
00047     cur_section_student_count= 0;
00048 }
00049 
00050 //------ End function Course::reset_vars -------//

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