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

Password:

Info class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Info Class Reference

#include <Oinfo.h>

List of all members.

Public Methods

int financial_year ()
 Info ()
 ~Info ()
void init ()
void deinit ()
int write_file (File *filePtr)
int read_file (File *filePtr)
void init_random_seed (int randomSeed)
void disp_panel_init ()
void disp_column_bitmap (VgaBuf *)
void disp ()
void next_day ()
bool is_begin_trimester ()
void disp_6_graphs ()
char * date_str_ymd (int year, int month, int day, int formatFlag=INFO_DATE_DEFAULT)
char * date_str_julian (long julianDate, int formatFlag=INFO_DATE_DEFAULT)

Public Attributes

int game_start_date
int game_date
int game_day
int game_month
int game_year
int prerun_year
int year_passed
int graph_year_passed
int graph_month_passed
int graph_trimester_passed
int graph_year
int graph_month
int graph_trimester
unsigned long start_play_time
unsigned long total_play_time
long random_seed_4_save
int last_year_array [5]
float avg_tal_acd
float avg_tal_ext
float avg_tal_ath
short * menu_down_bitmap
short * menu_up_bitmap
char * report_bitmap [REPORT_ITEMS+1]
char disp_6_graphs_flag


Detailed Description

Class representing the state of a particular scenario including dates, statistics, random seed, and screen layout. Can be read/written to a file.

Definition at line 176 of file Oinfo.h.


Constructor & Destructor Documentation

Info::Info  
 

Definition at line 64 of file Oinfo.cpp.

Info::~Info  
 

Definition at line 72 of file Oinfo.cpp.


Member Function Documentation

char * Info::date_str_julian long    julianDate,
int    formatFlag = INFO_DATE_DEFAULT
 

Definition at line 1105 of file Oinfo.cpp.

References date_str_ymd(), INFO_DATE_ADD_YR, INFO_DATE_F_YEAR, INFO_DATE_NO_DAY, INFO_DATE_NO_MONTH, INFO_DATE_NO_YEAR, and INFO_DATE_SHORT_MONTH.

char * Info::date_str_ymd int    year,
int    month,
int    day,
int    formatFlag = INFO_DATE_DEFAULT
 

Definition at line 1044 of file Oinfo.cpp.

References INFO_DATE_ADD_YR, INFO_DATE_F_YEAR, INFO_DATE_NO_DAY, INFO_DATE_NO_MONTH, INFO_DATE_NO_YEAR, and INFO_DATE_SHORT_MONTH.

Referenced by date_str_julian().

void Info::deinit  
 

Definition at line 134 of file Oinfo.cpp.

References mem_del, NULL, and REPORT_ITEMS.

void Info::disp  
 

Definition at line 735 of file Oinfo.cpp.

References SURPLUS_INFO_X1, SURPLUS_INFO_X2, SURPLUS_INFO_Y1, and SURPLUS_INFO_Y2.

void Info::disp_6_graphs  
 

Definition at line 31 of file Oinfo2.cpp.

References GraphPerformanceIndicatorYear::deinit(), GraphPerformanceIndicatorMonth::deinit(), disp_6_graphs_flag, FACULTY_RANK_LEVEL_TOTAL, GRAPH1_X1, GRAPH1_X2, GRAPH1_Y1, GRAPH1_Y2, GRAPH2_X1, GRAPH2_X2, GRAPH2_Y1, GRAPH2_Y2, GRAPH3_X1, GRAPH3_X2, GRAPH3_Y1, GRAPH3_Y2, GRAPH4_X1, GRAPH4_X2, GRAPH4_Y1, GRAPH4_Y2, GRAPH5_X1, GRAPH5_X2, GRAPH5_Y1, GRAPH5_Y2, GRAPH6_X1, GRAPH6_X2, GRAPH6_Y1, GRAPH6_Y2, graph_series_color, GraphPerformanceIndicatorYear::init(), GraphPerformanceIndicatorMonth::init(), MAX_STUDENT_LEVEL_TOTAL, MIN_MAX_X1, MIN_MAX_Y1, GraphPerformanceIndicatorYear::refresh(), GraphPerformanceIndicatorMonth::refresh(), S_FACULTY_MORALE, S_PRESTIGE, S_STUDENT_MORALE, V_BLUE, and V_ORANGE.

void Info::disp_column_bitmap VgaBuf   vgaBuf
 

Display areas of the column bitmap that touch the zoom viewing area ---//

Definition at line 837 of file Oinfo.cpp.

void Info::disp_panel_init  
 

Definition at line 681 of file Oinfo.cpp.

References BOTTOM_INFO_X1, BOTTOM_INFO_X2, BOTTOM_INFO_Y1, BOTTOM_INFO_Y2, COLUMN_HEIGHT, COLUMN_WIDTH, DATE_INFO_X1, DATE_INFO_X2, DATE_INFO_Y1, DATE_INFO_Y2, HELP_QUEST_X1, HELP_QUEST_X2, HELP_QUEST_Y1, HELP_QUEST_Y2, LIST_BUTTON_X1, LIST_BUTTON_X2, LIST_BUTTON_Y1, LIST_BUTTON_Y2, MENU_BUTTON_X1, MENU_BUTTON_X2, MENU_BUTTON_Y1, MENU_BUTTON_Y2, MORE_REPORT_X1, MORE_REPORT_X2, MORE_REPORT_Y1, MORE_REPORT_Y2, REPORT_ITEMS, SCORE_INFO_X1, SCORE_INFO_X2, SCORE_INFO_Y1, SCORE_INFO_Y2, SURPLUS_INFO_X1, SURPLUS_INFO_X2, SURPLUS_INFO_Y1, SURPLUS_INFO_Y2, TOP_INFO_X1, TOP_INFO_X2, TOP_INFO_Y1, TOP_INFO_Y2, U_SCORE_INFO_X1, U_SCORE_INFO_X2, U_SCORE_INFO_Y1, U_SCORE_INFO_Y2, YEAR_INFO_X1, YEAR_INFO_X2, YEAR_INFO_Y1, YEAR_INFO_Y2, ZOOM_X1, ZOOM_X2, ZOOM_Y1, and ZOOM_Y2.

int Info::financial_year  
 

Definition at line 1033 of file Oinfo.cpp.

References game_month, and game_year.

void Info::init  
 

Definition at line 80 of file Oinfo.cpp.

References DATE_BMP_RES_FILE_NAME, DAY_X1, DAY_X2, DIGIT_Y1, DIGIT_Y2, YEAR_X1, and YEAR_X2.

void Info::init_random_seed int    randomSeed
 

[unsigned] randomSeed - if given, it will be the random seed of the game. random seed. otherwise a random seed will be picked. (default:0)

Definition at line 190 of file Oinfo.cpp.

References NULL.

bool Info::is_begin_trimester  
 

Definition at line 672 of file Oinfo.cpp.

Referenced by next_day().

void Info::next_day  
 

Definition at line 210 of file Oinfo.cpp.

References CURSOR_NORMAL, CURSOR_WAITING, game_day, is_begin_trimester(), MODE_RETIREMENT, and YIELD.

int Info::read_file File   filePtr
 

Definition at line 289 of file OGFILE3.CPP.

References File::file_read().

int Info::write_file File   filePtr
 

Definition at line 278 of file OGFILE3.CPP.

References File::file_write(), and random_seed_4_save.


Member Data Documentation

float Info::avg_tal_acd
 

Definition at line 206 of file Oinfo.h.

float Info::avg_tal_ath
 

Definition at line 208 of file Oinfo.h.

float Info::avg_tal_ext
 

Definition at line 207 of file Oinfo.h.

char Info::disp_6_graphs_flag
 

Definition at line 271 of file Oinfo.h.

Referenced by disp_6_graphs().

int Info::game_date
 

Definition at line 179 of file Oinfo.h.

int Info::game_day
 

Definition at line 180 of file Oinfo.h.

Referenced by next_day().

int Info::game_month
 

Definition at line 181 of file Oinfo.h.

Referenced by financial_year().

int Info::game_start_date
 

Definition at line 178 of file Oinfo.h.

int Info::game_year
 

Definition at line 182 of file Oinfo.h.

Referenced by financial_year().

int Info::graph_month
 

Definition at line 196 of file Oinfo.h.

int Info::graph_month_passed
 

Definition at line 191 of file Oinfo.h.

int Info::graph_trimester
 

Definition at line 197 of file Oinfo.h.

int Info::graph_trimester_passed
 

Definition at line 192 of file Oinfo.h.

int Info::graph_year
 

Definition at line 195 of file Oinfo.h.

int Info::graph_year_passed
 

Definition at line 190 of file Oinfo.h.

int Info::last_year_array[5]
 

Definition at line 204 of file Oinfo.h.

short* Info::menu_down_bitmap
 

Definition at line 247 of file Oinfo.h.

short * Info::menu_up_bitmap
 

Definition at line 247 of file Oinfo.h.

int Info::prerun_year
 

Definition at line 183 of file Oinfo.h.

long Info::random_seed_4_save
 

Definition at line 203 of file Oinfo.h.

Referenced by write_file().

char* Info::report_bitmap[REPORT_ITEMS + 1]
 

Definition at line 248 of file Oinfo.h.

unsigned long Info::start_play_time
 

Definition at line 200 of file Oinfo.h.

unsigned long Info::total_play_time
 

Definition at line 201 of file Oinfo.h.

int Info::year_passed
 

Definition at line 187 of file Oinfo.h.


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:20 2002 for VirtualU by doxygen1.2.17