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

Password:

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

Location Class Reference

#include <OLOC.H>

List of all members.

Public Methods

 Location ()
 ~Location ()
void init ()
void deinit ()
void paint_object (short tileType, int x, int y, Rect *const clip, VgaBuf *vgaBuf)
void paint_terrain (short tileType, int x, int y, Rect *const clip, VgaBuf *vgaBuf)
void set_object (Firm *f)
bool is_object ()
bool select_object (short tileType, short locx, short locy, int mx, int my)
int is_empty ()
void set_terrain (int terrainId)
int is_walkable ()
void set_walkable_on ()
void set_walkable_off ()
void set_firm (int firmRecno)
void remove_firm ()
int is_firm ()
int firm_recno ()
int is_plant ()
void set_plant (int plantId, int offsetX, int offsetY)
void remove_plant ()
int plant_id ()
int plant_inner_x ()
int plant_inner_y ()
int is_road ()
int is_road_sub ()
void set_road (int roadId)
void set_road_sub ()
void remove_road ()
int road_id ()
void set_sprite (int spriteRecno)
void remove_sprite ()
int has_sprite ()
int sprite_recno ()

Public Attributes

unsigned short loc_flag
char loc_type
short cargo_recno
short extra_para
char terrain_id


Detailed Description

Structure representing the location and features of physical facilities (firms, plants, vehicles, and sprites) on campus. (Location class is deprecated).

Definition at line 20 of file OLOC.H.


Constructor & Destructor Documentation

Location::Location  
 

desc <int> - [int] -

Definition at line 28 of file OLOC.CPP.

Location::~Location  
 

Definition at line 38 of file OLOC.CPP.


Member Function Documentation

void Location::deinit  
 

Definition at line 53 of file OLOC.CPP.

int Location::firm_recno   [inline]
 

Definition at line 74 of file Omatrix.h.

References cargo_recno.

int Location::has_sprite   [inline]
 

Definition at line 105 of file Omatrix.h.

References extra_para, and is_walkable().

Referenced by Sprite::process(), and sprite_recno().

void Location::init  
 

Definition at line 46 of file OLOC.CPP.

int Location::is_empty   [inline]
 

Definition at line 58 of file Omatrix.h.

References LOC_EMPTY, and loc_type.

int Location::is_firm   [inline]
 

Definition at line 73 of file Omatrix.h.

References LOC_IS_FIRM, and loc_type.

bool Location::is_object  
 

Definition at line 95 of file OLOC.CPP.

References NULL.

int Location::is_plant   [inline]
 

Definition at line 78 of file Omatrix.h.

References LOC_IS_PLANT, and loc_type.

Referenced by plant_id().

int Location::is_road   [inline]
 

Definition at line 92 of file Omatrix.h.

References LOC_IS_ROAD, and loc_type.

Referenced by road_id().

int Location::is_road_sub   [inline]
 

Definition at line 93 of file Omatrix.h.

References LOC_IS_ROAD_SUB, and loc_type.

int Location::is_walkable   [inline]
 

Definition at line 62 of file Omatrix.h.

References loc_flag, and LOCATE_WALK_LAND.

Referenced by has_sprite(), and Sprite::process().

void Location::paint_object short    tileType,
int    x,
int    y,
Rect *const    clip,
VgaBuf   vgaBuf
 

void Location::paint_terrain short    tileType,
int    x,
int    y,
Rect *const    clip,
VgaBuf   vgaBuf
 

int Location::plant_id   [inline]
 

Definition at line 82 of file Omatrix.h.

References extra_para, and is_plant().

int Location::plant_inner_x   [inline]
 

Definition at line 83 of file Omatrix.h.

References cargo_recno.

int Location::plant_inner_y   [inline]
 

Definition at line 86 of file Omatrix.h.

References cargo_recno.

void Location::remove_firm  
 

Definition at line 481 of file Omatrix.cpp.

References LOC_EMPTY.

void Location::remove_plant  
 

Definition at line 504 of file Omatrix.cpp.

References LOC_EMPTY.

void Location::remove_road  
 

Definition at line 527 of file Omatrix.cpp.

References LOC_EMPTY.

void Location::remove_sprite  
 

Definition at line 551 of file Omatrix.cpp.

int Location::road_id   [inline]
 

Definition at line 98 of file Omatrix.h.

References cargo_recno, and is_road().

bool Location::select_object short    tileType,
short    locx,
short    locy,
int    mx,
int    my
 

is this object include this point and location

Definition at line 104 of file OLOC.CPP.

References NULL.

void Location::set_firm int    firmRecno
 

Definition at line 471 of file Omatrix.cpp.

References LOC_IS_FIRM.

void Location::set_object Firm   f
 

desc

Definition at line 86 of file OLOC.CPP.

void Location::set_plant int    plantId,
int    offsetX,
int    offsetY
 

Definition at line 492 of file Omatrix.cpp.

References LOC_IS_PLANT.

void Location::set_road int    roadId
 

Definition at line 516 of file Omatrix.cpp.

References LOC_IS_ROAD.

void Location::set_road_sub   [inline]
 

Definition at line 95 of file Omatrix.h.

References LOC_IS_ROAD_SUB, loc_type, and set_walkable_on().

void Location::set_sprite int    spriteRecno
 

Definition at line 540 of file Omatrix.cpp.

Referenced by Sprite::process().

void Location::set_terrain int    terrainId [inline]
 

Definition at line 59 of file Omatrix.h.

References set_walkable_on(), and terrain_id.

void Location::set_walkable_off   [inline]
 

Definition at line 66 of file Omatrix.h.

References loc_flag, and LOCATE_WALK_LAND.

void Location::set_walkable_on   [inline]
 

Definition at line 65 of file Omatrix.h.

References loc_flag, and LOCATE_WALK_LAND.

Referenced by set_road_sub(), and set_terrain().

int Location::sprite_recno   [inline]
 

Definition at line 106 of file Omatrix.h.

References extra_para, and has_sprite().


Member Data Documentation

short Location::cargo_recno
 

Definition at line 53 of file Omatrix.h.

Referenced by firm_recno(), plant_inner_x(), plant_inner_y(), and road_id().

short Location::extra_para
 

Definition at line 54 of file Omatrix.h.

Referenced by has_sprite(), plant_id(), and sprite_recno().

unsigned short Location::loc_flag
 

Definition at line 51 of file Omatrix.h.

Referenced by is_walkable(), set_walkable_off(), and set_walkable_on().

char Location::loc_type
 

Definition at line 52 of file Omatrix.h.

Referenced by is_empty(), is_firm(), is_plant(), is_road(), is_road_sub(), and set_road_sub().

char Location::terrain_id
 

Definition at line 55 of file Omatrix.h.

Referenced by set_terrain().


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