#include <OFIRMA.H>
Inheritance diagram for FirmArray:
Definition at line 19 of file OFIRMA.H.
desc <int> - [int] -
Definition at line 17 of file OFIRMA.CPP.
Definition at line 25 of file OFIRMA.CPP.
<int> xLoc = the x location of the firm to be built <int> yLoc = the y location of the firm to be built <int> firmId = firm type id.
Return : <int> the record no. of the newly added firm; index for firm_array
Definition at line 83 of file OFIRMA.CPP.
called by :
1. FirmArray::add_firm() for setting up a new firm 2. FirmArray::read_file() when loading game.
<int> firmId = firm type id
return : <int> the record no. of the newly added firm
Definition at line 111 of file OFIRMA.CPP.
Reimplemented from DynArray.
Definition at line 42 of file OFIRMA.CPP.
Definition at line 136 of file OFIRMA.CPP.
References DynArrayB::linkout(), selected_recno, and touched_recno.
Definition at line 33 of file OFIRMA.CPP.
[inline]
Definition at line 58 of file OFIRMA.H.
References DynArray::get_ptr(), and NULL.
Definition at line 54 of file OFIRMA.H.
References DynArray::get_ptr().
Definition at line 55 of file OFIRMA.H.
Referenced by select_firm().
Process all firm in firm_array for action and movement for next frame
Return : 1 - all firm in the FirmArray has been processed 0 - only some has been processed, not all
Definition at line 69 of file OFIRMA.CPP.
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
Reimplemented from DynArrayB.
Definition at line 158 of file OFIRMA.CPP.
References Firm::department_recno, FIRM_ADMISSIONS, FIRM_DEVELOPMENT, FIRM_FACILITIES, Firm::firm_id, FIRM_INDOOR_SPORTS, FIRM_LIBRARY, FIRM_OLD_MAIN, FIRM_PARK_LOTS, FIRM_PARK_STRUCTURE, FIRM_POLICE, FIRM_STADIUM, operator[](), and selected_recno.
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 21 of file OFIRMA.H.
Referenced by del_firm(), and select_firm().
Definition at line 24 of file OFIRMA.H.
Definition at line 23 of file OFIRMA.H.
Referenced by del_firm().