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

Password:

News struct Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

News Struct Reference

#include <Onews.h>

Inheritance diagram for News:

Task List of all members.

Public Methods

char news_type ()
char * msg ()
void task_msg ()
char * get_task_msg ()
void alumni_die ()
void rape_in_campus ()
void retrofit_facilities ()
void earth_quake ()
void risky_research ()
void scandal_in_athletics ()
void research_prize ()
 short_para1 - the department recno short_para2 - the faculty recno in the department. short_para3 - first name id short_para4 - middle name id short_para5 - last name id

void technology_transfer ()
 short_para1 - the recno of the department float_para1 - the amount of technology transfer.

void capital_campaign ()
void student_loans ()
void plagiarism_scandal ()
void for_profit_competition ()
void minority_student_percentage_falls ()
void successful_grad ()
void media_obtain_information ()
void congress_research ()
void stock_market ()
void scandalous_fund_use ()
void new_governor ()
void court_limit_minority ()
void football_game ()
 short_para1 = dollar in K

void basketball_game ()
 short_para1 = dollar in K

void new_year_start ()
void scenario_near_end ()
void scenario_news ()
 newsPtr->short_para1 = type; // PLAQUE_NEWS newsPtr->short_para2 = subType; // PLAQUE_GOLD newsPtr->short_para3 = year; // 1998

void open_game_near_end ()
void open_game_end ()
void new_task ()
void news_rise_performance ()
void news_educational_quality ()
void news_student_morale ()
void news_department_morale ()
void news_rise_faculty_research_Per ()
void news_rise_faculty_diversity_index ()
void news_rise_use_of_IT ()
void news_rise_staff_morale ()
void set_newspaper_popup ()

Public Attributes

char id
char task_id
char type
char task_msg_subtype
long news_date
int short_para1
int short_para2
int short_para3
short short_para4
short short_para5
short short_para6
short short_para7
float float_para1
char str_para1 [NEWS_STR_PARA_LEN+1]
int line_count

Static Public Attributes

String str

Detailed Description

Class which defines news events which can occur during the game with routines for generating their associated messages. (i.e. n old alumnus/alumna> dies and leaves a bequest of $<bequest> thousand which is transferred to Development Office.)

Definition at line 151 of file Onews.h.


Member Function Documentation

void News::alumni_die  
 

short_para1 = gender // { GENDER_MALE, GENDER_FEMALE }; short_para2 = bequest

Definition at line 164 of file Onewsmsg.cpp.

References GENDER_MALE.

void News::basketball_game  
 

short_para1 = dollar in K

Definition at line 448 of file Onewsmsg.cpp.

void News::capital_campaign  
 

Definition at line 414 of file Onewsmsg.cpp.

References str.

void News::congress_research  
 

short_para1 = adjust direction

Definition at line 220 of file Onewsmsg.cpp.

void News::court_limit_minority  
 

Definition at line 269 of file Onewsmsg.cpp.

void News::earth_quake  
 

Definition at line 210 of file Onewsmsg.cpp.

void News::football_game  
 

short_para1 = dollar in K

Definition at line 435 of file Onewsmsg.cpp.

void News::for_profit_competition  
 

Definition at line 314 of file Onewsmsg.cpp.

char * News::get_task_msg  
 

Definition at line 70 of file Otaskmsg.cpp.

void News::media_obtain_information  
 

short_para1 = true cost education

Definition at line 350 of file Onewsmsg.cpp.

void News::minority_student_percentage_falls  
 

Definition at line 325 of file Onewsmsg.cpp.

char * News::msg  
 

Return the msg string of current news.

Definition at line 124 of file Onewsmsg.cpp.

References NewsFP.

Referenced by TaskArray::next_day().

void News::new_governor  
 

short_para1 = direction

Definition at line 254 of file Onewsmsg.cpp.

void News::new_task  
 

void News::new_year_start  
 

Definition at line 489 of file Onewsmsg.cpp.

void News::news_department_morale  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 230 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_educational_quality  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 136 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_rise_faculty_diversity_index  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 322 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_rise_faculty_research_Per  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 276 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_rise_performance  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 88 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_rise_staff_morale  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 418 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_rise_use_of_IT  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 372 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

void News::news_student_morale  
 

newsPtr->short_para1 = deptRecno; newsPtr->short_para2 = ratingType; newsPtr->short_para3 = target; newsPtr->short_para4 = src; newsPtr->short_para5 = month; newsPtr->short_para6 = year; newsPtr->short_para7 = bonus;

Definition at line 184 of file Otaskmsg.cpp.

References SCN_NONE, TASK_MSG_SUBTYPE_COUNT, and TOTAL_RATING_NAME.

char News::news_type   [inline]
 

Definition at line 157 of file Onews.h.

References NEWS_TYPE_NUM, and type.

void News::open_game_end  
 

Definition at line 523 of file Onewsmsg.cpp.

void News::open_game_near_end  
 

Definition at line 507 of file Onewsmsg.cpp.

void News::plagiarism_scandal  
 

Definition at line 302 of file Onewsmsg.cpp.

void News::rape_in_campus  
 

Definition at line 189 of file Onewsmsg.cpp.

void News::research_prize  
 

short_para1 - the department recno short_para2 - the faculty recno in the department. short_para3 - first name id short_para4 - middle name id short_para5 - last name id

Definition at line 374 of file Onewsmsg.cpp.

References Faculty::name().

void News::retrofit_facilities  
 

<int> short_para1 = dollarLost;

Definition at line 200 of file Onewsmsg.cpp.

void News::risky_research  
 

Definition at line 278 of file Onewsmsg.cpp.

void News::scandal_in_athletics  
 

Definition at line 292 of file Onewsmsg.cpp.

void News::scandalous_fund_use  
 

short_para1 = dollarLost

Definition at line 242 of file Onewsmsg.cpp.

void News::scenario_near_end  
 

Definition at line 498 of file Onewsmsg.cpp.

void News::scenario_news  
 

newsPtr->short_para1 = type; // PLAQUE_NEWS newsPtr->short_para2 = subType; // PLAQUE_GOLD newsPtr->short_para3 = year; // 1998

Definition at line 543 of file Onewsmsg.cpp.

void News::set_newspaper_popup  
 

Definition at line 138 of file Onewsmsg.cpp.

References INFO_DATE_DEFAULT, INFO_DATE_NO_DAY, and INFO_DATE_SHORT_MONTH.

void News::stock_market  
 

short_para1 = adjust direction

Definition at line 231 of file Onewsmsg.cpp.

void News::student_loans  
 

Definition at line 421 of file Onewsmsg.cpp.

References short_para1, and str.

void News::successful_grad  
 

Definition at line 335 of file Onewsmsg.cpp.

void News::task_msg  
 

Definition at line 60 of file Otaskmsg.cpp.

References NewsFP.

void News::technology_transfer  
 

short_para1 - the recno of the department float_para1 - the amount of technology transfer.

Definition at line 401 of file Onewsmsg.cpp.


Member Data Documentation

float News::float_para1
 

Definition at line 175 of file Onews.h.

Referenced by NewsArray::technology_transfer().

char News::id
 

Definition at line 153 of file Onews.h.

Referenced by TaskArray::next_day().

int News::line_count
 

Definition at line 179 of file Onews.h.

long News::news_date
 

Definition at line 160 of file Onews.h.

Referenced by TaskArray::next_day(), TaskArray::operator[](), and NewsArray::operator[]().

int News::short_para1
 

Definition at line 168 of file Onews.h.

Referenced by NewsArray::research_prize(), TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), TaskArray::rise_use_of_IT(), student_loans(), NewsArray::student_loans(), and NewsArray::technology_transfer().

int News::short_para2
 

Definition at line 169 of file Onews.h.

Referenced by NewsArray::research_prize(), TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

int News::short_para3
 

Definition at line 170 of file Onews.h.

Referenced by Task::is_completed_rise_faculty_research_Per(), Task::is_completed_rise_student_morale(), NewsArray::research_prize(), TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

short News::short_para4
 

Definition at line 171 of file Onews.h.

Referenced by NewsArray::research_prize(), TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

short News::short_para5
 

Definition at line 172 of file Onews.h.

Referenced by NewsArray::research_prize(), TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

short News::short_para6
 

Definition at line 173 of file Onews.h.

Referenced by TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

short News::short_para7
 

Definition at line 174 of file Onews.h.

Referenced by TaskArray::rise_department_morale(), TaskArray::rise_educational_quality(), TaskArray::rise_faculty_diversity_index(), TaskArray::rise_faculty_research_Per(), TaskArray::rise_performance_rating(), TaskArray::rise_staff_morale(), TaskArray::rise_student_morale(), and TaskArray::rise_use_of_IT().

String News::str [static]
 

Definition at line 118 of file Onewsmsg.cpp.

Referenced by capital_campaign(), and student_loans().

char News::str_para1[NEWS_STR_PARA_LEN+1]
 

Definition at line 176 of file Onews.h.

char News::task_id
 

Definition at line 154 of file Onews.h.

char News::task_msg_subtype
 

Definition at line 158 of file Onews.h.

Referenced by TaskArray::next_day().

char News::type
 

Definition at line 156 of file Onews.h.

Referenced by news_type().


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