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

Password:

Gamedef.h File Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Gamedef.h File Reference

Go to the source code of this file.

Defines

#define GAME_VERSION   201
#define APP_NAME   "CCampus"
#define WIN_CLASS_NAME   "Virtual U"
#define WIN_TITLE   "Virtual U"
#define DIR_RES   "RESOURCE\\"
#define DIR_SOUND   "SOUND\\"
#define DIR_MOVIE   sys.dir_movie
#define DIR_TUTORIAL   sys.dir_tutorial
#define DIR_SCENARIO   sys.dir_scenario
#define MAX_ZOOM_LEVEL   3
#define MAX_DEPARTMENT   12
#define STUDENT_TO_FACULTY_RATIO   14
#define CAN_BE_ANY   -1
#define IF(cond, x, y)   ((cond)?(x):(y))
#define shift_history(hArr, hCount)

Enumerations

enum  { INFO_REPAINT = 10, INFO_UPDATE, INFO_SPECIAL }
enum  { ZOOM_SMALL = 0, ZOOM_MEDIUM, ZOOM_LARGE }
enum  { INPUT_LOW, INPUT_MEDIUM, INPUT_HIGH, INPUT_OPTION_COUNT }
enum  { GENDER_ETHNIC_TYPE_COUNT = 4 }
enum  { NONMINORITY_MALE, NONMINORITY_FEMALE, MINORITY_MALE, MINORITY_FEMALE }
enum  { GENDER_MALE, GENDER_FEMALE }
enum  { GENDER_ETHNIC_TYPE_COUNT_N_TOTAL = GENDER_ETHNIC_TYPE_COUNT + 1, GENDER_ETHNIC_TYPE_TOTAL = GENDER_ETHNIC_TYPE_COUNT }
enum  { TRIMESTER_PER_YEAR = 3 }
enum  { AUTUMN, WINTER, SUMMER }
enum  { FIRST_TRIMESTER = AUTUMN, LAST_TRIMESTER = SUMMER }
enum  {
  PRIVATE_SCHOOL, LIBERAL_ARTS_SCHOOL, PUBLIC_SCHOOL, COMPREHENSIVE_SCHOOL,
  INSTITUTIONAL_TYPE_COUNT, DUMMY_SCHOOL
}
enum  {
  HISTORY_YEAR_COUNT = 8, H_PREV_YEAR = HISTORY_YEAR_COUNT-3, H_THIS_YEAR = HISTORY_YEAR_COUNT-2, H_NEXT_YEAR = HISTORY_YEAR_COUNT-1,
  THIS_YEAR = HISTORY_YEAR_COUNT-1, HISTORY_YEAR_COUNT2 = HISTORY_YEAR_COUNT * 2, OFFICE_REVENUE = HISTORY_YEAR_COUNT - 2, OFFICE_EXPENSE = HISTORY_YEAR_COUNT2 - 2,
  FIRST_H_THIS_YEAR = OFFICE_REVENUE, SECOND_H_THIS_YEAR = OFFICE_EXPENSE
}
enum  {
  HISTORY_MONTH_COUNT = 48, H_PREV_MONTH = HISTORY_MONTH_COUNT-3, H_THIS_MONTH = HISTORY_MONTH_COUNT-2, H_NEXT_MONTH = HISTORY_MONTH_COUNT-1,
  THIS_MONTH = HISTORY_MONTH_COUNT-1
}
enum  {
  HISTORY_TRIMESTER_COUNT = 24, H_PREV_TRIMESTER = HISTORY_TRIMESTER_COUNT-3, H_THIS_TRIMESTER = HISTORY_TRIMESTER_COUNT-2, H_NEXT_TRIMESTER = HISTORY_TRIMESTER_COUNT-1,
  THIS_TRIMESTER = HISTORY_TRIMESTER_COUNT-1
}
enum  { UPDATE_MONTH, UPDATE_TRIMESTER, UPDATE_YEAR, UPDATE_ALL }

Variables

char * GAME_VERSION_STR


Define Documentation

#define APP_NAME   "CCampus"
 

Definition at line 14 of file Gamedef.h.

#define CAN_BE_ANY   -1
 

Definition at line 41 of file Gamedef.h.

#define DIR_MOVIE   sys.dir_movie
 

Definition at line 26 of file Gamedef.h.

#define DIR_RES   "RESOURCE\\"
 

Definition at line 24 of file Gamedef.h.

Referenced by SECtrl::init(), MouseCursor::init(), Help::init(), FacultyPhotoRes::init(), Font::init(), GameSet::open_set(), and GameSetting::play_scenario_report().

#define DIR_SCENARIO   sys.dir_scenario
 

Definition at line 28 of file Gamedef.h.

#define DIR_SOUND   "SOUND\\"
 

Definition at line 25 of file Gamedef.h.

#define DIR_TUTORIAL   sys.dir_tutorial
 

Definition at line 27 of file Gamedef.h.

#define GAME_VERSION   201
 

Definition at line 10 of file Gamedef.h.

Referenced by GameFileArray::init().

#define IF cond,
x,
     ((cond)?(x):(y))
 

Definition at line 43 of file Gamedef.h.

Referenced by Department::hiring_priority_input_2_multiplier(), Department::hiring_priority_level_input_2_multiplier(), and DepartmentArray::salary_weight_input_2_multiplier().

#define MAX_DEPARTMENT   12
 

Definition at line 38 of file Gamedef.h.

Referenced by DepartmentArray::add(), DepartmentArray::create_dept(), PlayerSchool::init_scen_dept_selected(), PlayerSchool::next_trimester(), FacultyRes::summary_report_7(), and FacultyRes::summary_report_deinit().

#define MAX_ZOOM_LEVEL   3
 

Definition at line 32 of file Gamedef.h.

Referenced by TerrainRes::deinit(), RoadRes::deinit(), PlantRes::deinit(), FirmRes::deinit(), and SpriteInfo::free_bitmap_res().

#define shift_history hArr,
hCount   
 

Value:

{ \
      \
    { \
          \
          int _h;\
                     for ( _h=0; _h<hCount-1; _h++)\
                         { \
                               hArr[_h] = hArr[_h+1];\
                                                         }\
                                                              hArr[hCount-1] = 0;\
                                                                                     }\
                                                                                          \
                                                                                          }

Definition at line 137 of file Gamedef.h.

Referenced by DepartmentArray::calc_course_history(), StudentArray::calc_degree_awarded(), DepartmentArray::next_day(), Department::next_day(), LibTech::update_history(), Department::update_history(), DepartmentArray::update_history(), and CourseArray::update_history().

#define STUDENT_TO_FACULTY_RATIO   14
 

Definition at line 39 of file Gamedef.h.

#define WIN_CLASS_NAME   "Virtual U"
 

Definition at line 15 of file Gamedef.h.

#define WIN_TITLE   "Virtual U"
 

Definition at line 16 of file Gamedef.h.

Referenced by Vga::set_mode(), and WinMain().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
INFO_REPAINT 
INFO_UPDATE 
INFO_SPECIAL 

Definition at line 20 of file Gamedef.h.

anonymous enum
 

Enumeration values:
ZOOM_SMALL 
ZOOM_MEDIUM 
ZOOM_LARGE 

Definition at line 34 of file Gamedef.h.

anonymous enum
 

Enumeration values:
PRIVATE_SCHOOL 
LIBERAL_ARTS_SCHOOL 
PUBLIC_SCHOOL 
COMPREHENSIVE_SCHOOL 
INSTITUTIONAL_TYPE_COUNT 
DUMMY_SCHOOL 

Definition at line 75 of file Gamedef.h.

anonymous enum
 

Enumeration values:
HISTORY_YEAR_COUNT 
H_PREV_YEAR 
H_THIS_YEAR 
H_NEXT_YEAR 
THIS_YEAR 
HISTORY_YEAR_COUNT2 
OFFICE_REVENUE 
OFFICE_EXPENSE 
FIRST_H_THIS_YEAR 
SECOND_H_THIS_YEAR 

Definition at line 83 of file Gamedef.h.

anonymous enum
 

Enumeration values:
HISTORY_MONTH_COUNT 
H_PREV_MONTH 
H_THIS_MONTH 
H_NEXT_MONTH 
THIS_MONTH 

Definition at line 108 of file Gamedef.h.

anonymous enum
 

Enumeration values:
HISTORY_TRIMESTER_COUNT 
H_PREV_TRIMESTER 
H_THIS_TRIMESTER 
H_NEXT_TRIMESTER 
THIS_TRIMESTER 

Definition at line 120 of file Gamedef.h.

anonymous enum
 

Enumeration values:
UPDATE_MONTH 
UPDATE_TRIMESTER 
UPDATE_YEAR 
UPDATE_ALL 

Definition at line 131 of file Gamedef.h.

anonymous enum
 

Enumeration values:
INPUT_LOW 
INPUT_MEDIUM 
INPUT_HIGH 
INPUT_OPTION_COUNT 

Definition at line 49 of file Gamedef.h.

anonymous enum
 

Enumeration values:
GENDER_ETHNIC_TYPE_COUNT 

Definition at line 55 of file Gamedef.h.

anonymous enum
 

Enumeration values:
NONMINORITY_MALE 
NONMINORITY_FEMALE 
MINORITY_MALE 
MINORITY_FEMALE 

Definition at line 57 of file Gamedef.h.

anonymous enum
 

Enumeration values:
GENDER_MALE 
GENDER_FEMALE 

Definition at line 58 of file Gamedef.h.

anonymous enum
 

Enumeration values:
GENDER_ETHNIC_TYPE_COUNT_N_TOTAL 
GENDER_ETHNIC_TYPE_TOTAL 

Definition at line 60 of file Gamedef.h.

anonymous enum
 

Enumeration values:
TRIMESTER_PER_YEAR 

Definition at line 66 of file Gamedef.h.

anonymous enum
 

Enumeration values:
AUTUMN 
WINTER 
SUMMER 

Definition at line 68 of file Gamedef.h.

anonymous enum
 

Enumeration values:
FIRST_TRIMESTER 
LAST_TRIMESTER 

Definition at line 70 of file Gamedef.h.


Variable Documentation

char* GAME_VERSION_STR
 

Definition at line 9 of file Gamedef.h.


Generated on Fri Aug 23 01:38:39 2002 for VirtualU by doxygen1.2.17