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

Password:

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

Firm Class Reference

#include <Ofirm.h>

List of all members.

Public Methods

char * name ()
int is_selected ()
void init (int xLoc, int yLoc, int firmId)
void deinit ()
void draw (Matrix *)
void double_click_firm ()

Public Attributes

short firm_recno
short firm_id
short department_recno
short loc_x1
short loc_y1
short loc_x2
short loc_y2
Rect abs_rect [MAX_ZOOM_LEVEL]
int setup_date


Detailed Description

Class used for drawing the buildings on the screen. Responds to double click event by changing the view mode to detailed report view.

Definition at line 24 of file Ofirm.h.


Member Function Documentation

void Firm::deinit  
 

Definition at line 68 of file Ofirm.cpp.

void Firm::double_click_firm  
 

This is called when the player double clicks on this firm.

Definition at line 196 of file Ofirm.cpp.

References FIRST_NONDEPARTMENTAL_FIRM_ID, MODE_DEPARTMENT, MODE_INSTITUTION, and MODE_PERFORMANCE_REPORT.

void Firm::draw Matrix   matrixPtr
 

<Matrix*> matrixPtr - pointer to the current active matrix

Definition at line 17 of file OFIRMDRW.CPP.

void Firm::init int    xLoc,
int    yLoc,
int    firmId
 

<int> xLoc, yLoc = the location of firm in the world map <int> firmId = id(type) of the firm

Definition at line 33 of file Ofirm.cpp.

References MAP_LOC_HEIGHT, MAP_LOC_WIDTH, ZOOM1_LOC_HEIGHT, ZOOM1_LOC_WIDTH, ZOOM2_LOC_HEIGHT, ZOOM2_LOC_WIDTH, ZOOM_LARGE, ZOOM_MEDIUM, and ZOOM_SMALL.

int Firm::is_selected   [inline]
 

Definition at line 42 of file Ofirm.h.

References firm_recno.

char * Firm::name  
 

Definition at line 153 of file Ofirm.cpp.


Member Data Documentation

Rect Firm::abs_rect[MAX_ZOOM_LEVEL]
 

Definition at line 32 of file Ofirm.h.

short Firm::department_recno
 

Definition at line 29 of file Ofirm.h.

Referenced by FirmArray::select_firm().

short Firm::firm_id
 

Definition at line 27 of file Ofirm.h.

Referenced by FirmArray::select_firm().

short Firm::firm_recno
 

Definition at line 26 of file Ofirm.h.

Referenced by is_selected().

short Firm::loc_x1
 

Definition at line 31 of file Ofirm.h.

short Firm::loc_x2
 

Definition at line 31 of file Ofirm.h.

short Firm::loc_y1
 

Definition at line 31 of file Ofirm.h.

short Firm::loc_y2
 

Definition at line 31 of file Ofirm.h.

int Firm::setup_date
 

Definition at line 36 of file Ofirm.h.


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