#include <Onews.h>
Inheritance diagram for NewsArray:
Definition at line 259 of file Onews.h.
Definition at line 16 of file ONEWS.CPP.
Called by news processing function to set news parameters
<int> newsId = the id. of the news <int> newsType = news type [int] nationRecno = nation recno of the news [int] nationRecno2 = recno of the 2nd nation related to the news [int] forceAdd = add this news anyway, regardless of whether the nation has contact with the player or not (default: 0)
return : <News*> return the pointer of the News NULL - the nation of the news does not have contact with the player
Definition at line 680 of file Onewsadd.cpp.
References MAX_NEWS.
Referenced by capital_campaign(), research_prize(), student_loans(), and technology_transfer().
<int> gender = { GENDER_MALE, GENDER_FEMALE }; <int> bequest = dollar in million
short_para1 = the recno of the TalkMsg in talk_res.talk_msg_array
Definition at line 27 of file Onewsadd.cpp.
References NEWS_ALUMNI_DIE.
<int>
Definition at line 484 of file Onewsadd.cpp.
References INPUT_LOW, and NEWS_BASKETBALL_GAME.
Definition at line 259 of file Onewsadd.cpp.
References add_news(), and NEWS_CAPITAL_CAMPAIGN.
short_para1 = adjust direction
Definition at line 90 of file Onewsadd.cpp.
References NEWS_CONGRESS_RESEARCH.
Definition at line 327 of file Onewsadd.cpp.
References NEWS_COURT_LIMIT_MINORITY.
Reset all news display options
Definition at line 56 of file ONEWS.CPP.
References NEWS_DISP_ALL, and NEWS_NORMAL.
Reimplemented from DynArray.
Definition at line 31 of file ONEWS.CPP.
[inline]
Definition at line 281 of file Onews.h.
References news_add_flag.
Definition at line 77 of file Onewsadd.cpp.
References NEWS_EARTH_QUAKE.
Definition at line 280 of file Onews.h.
Definition at line 402 of file Onewsadd.cpp.
References INPUT_LOW, and NEWS_FOOTBALL_GAME.
short_para1 = inc //in operation reserve.
Definition at line 156 of file Onewsadd.cpp.
References NEWS_FOR_PROFIT_COMPETITION.
Definition at line 23 of file ONEWS.CPP.
short_para1 = true cost education
Definition at line 204 of file Onewsadd.cpp.
References NEWS_MEDIA_OBTAIN_INFORMATION.
Definition at line 172 of file Onewsadd.cpp.
References NEWS_MINORITY_STUDENT_PERCENTAGE_FALLS.
short_para1 = direction
Definition at line 314 of file Onewsadd.cpp.
References NEWS_NEW_GOVENOR.
<int> taskPtr - task info [int] subtype=TASK_STARTED by default
Definition at line 560 of file Onewsadd.cpp.
References NEWS_NEW_TASK, and NEWS_NORMAL.
Definition at line 580 of file Onewsadd.cpp.
References NEWS_NEW_YEAR_START, and NEWS_NORMAL.
Definition at line 626 of file Onewsadd.cpp.
References NEWS_NORMAL, and NEWS_OPEN_GAME_END.
Definition at line 604 of file Onewsadd.cpp.
References NEWS_NORMAL, and NEWS_OPEN_GAME_NEAR_END.
Definition at line 96 of file ONEWS.CPP.
References err_if, err_now, DynArray::get(), News::news_date, and NULL.
short_para1 = number of dismissed students.
Definition at line 139 of file Onewsadd.cpp.
References NEWS_PLAGIARISM_SCANDAL.
Definition at line 47 of file Onewsadd.cpp.
References NEWS_RAPE_IN_CAMPUS.
Read a saved dynamic array from file, it must be saved with write_file()
<File*> readFile = the pointer to the writing file
Return : 1 - read successfully 0 - writing error
Definition at line 346 of file OGFILE3.CPP.
References File::file_read(), and DynArray::read_file().
Remove a specific news from the news_array.
<int> newsId = id. of the news <int> shortPara1 = short_para1 of the news
Definition at line 71 of file ONEWS.CPP.
Definition at line 221 of file Onewsadd.cpp.
References add_news(), Department::faculty_array, Faculty::first_name_id, Faculty::last_name_id, Faculty::middle_name_id, NEWS_RESEARCH_PRIZE, News::short_para1, News::short_para2, News::short_para3, News::short_para4, and News::short_para5.
Reset all news display options and clear all news in the log
Definition at line 41 of file ONEWS.CPP.
<int> short_para1 = dollarLost;
Definition at line 60 of file Onewsadd.cpp.
References NEWS_RETROFIT_FACILITIES.
Definition at line 106 of file Onewsadd.cpp.
References NEWS_RISKY_RESEARCH.
Definition at line 123 of file Onewsadd.cpp.
References NEWS_SCANDAL_IN_ATHLETICS.
short_para1 = dollarLost
Definition at line 299 of file Onewsadd.cpp.
References NEWS_SCANDALOUS_FUND_USE.
Definition at line 593 of file Onewsadd.cpp.
References NEWS_NORMAL, and NEWS_SCENARIO_NEAR_END.
Definition at line 650 of file Onewsadd.cpp.
References NEWS_NORMAL, and NEWS_SCENARIO_NEWS.
Definition at line 284 of file Onewsadd.cpp.
References NEWS_STOCK_MARKET.
Definition at line 269 of file Onewsadd.cpp.
References add_news(), NEWS_STUDENT_LOANS, and News::short_para1.
Definition at line 188 of file Onewsadd.cpp.
References NEWS_SUCCESSFUL_GRAD.
Definition at line 246 of file Onewsadd.cpp.
References add_news(), News::float_para1, NEWS_TECHNOLOGY_TRANSFER, and News::short_para1.
Write current dynamic array into file, read_file() can be used to retrieve it.
<File*> writeFile = the pointer to the writing file
Return : 1 - write successfully 0 - writing error
Definition at line 337 of file OGFILE3.CPP.
References File::file_write(), and DynArray::write_file().
Definition at line 267 of file Onews.h.
Definition at line 265 of file Onews.h.
Referenced by disable(), and enable().
Definition at line 263 of file Onews.h.
Definition at line 264 of file Onews.h.