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

Password:

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

World Class Reference

World display class, including the map and the zoom level. More...

#include <OWORLD.H>

List of all members.

Public Methods

 World ()
 ~World ()
void init ()
void deinit ()
void draw_all ()
void draw_update ()
virtual int detect ()
Locationget_loc (int xLoc, int yLoc)
Locationget_valid_loc (int xLoc, int yLoc)
void set_show_map (int showMapFlag)
void set_zoom_level (int newZoomLevel)

Public Attributes

Locationloc_matrix
short max_x_loc
short max_y_loc
MapMatrix map_matrix
ZoomMatrix zoom1_matrix
ZoomMatrix zoom2_matrix
char show_map
char zoom_level
ZoomMatrixactive_zoom_matrix


Detailed Description

World display class, including the map and the zoom level.

Definition at line 18 of file OWORLD.H.


Constructor & Destructor Documentation

World::World  
 

Definition at line 14 of file Oworld.cpp.

References loc_matrix, and NULL.

World::~World  
 

Definition at line 22 of file Oworld.cpp.

References deinit().


Member Function Documentation

void World::deinit  
 

Definition at line 70 of file Oworld.cpp.

References mem_del, and NULL.

Referenced by ~World().

int World::detect void    [virtual]
 

Detect mouse action from user

Return : 1 - mouse pressed on World area 0 - mouse not pressed on World area

Definition at line 153 of file Oworld.cpp.

void World::draw_all  
 

Definition at line 120 of file Oworld.cpp.

References MAP_BORDER_HEIGHT, MAP_BORDER_WIDTH, MAP_X1, MAP_X2, MAP_Y1, MAP_Y2, V_BLACK, and V_WHITE.

void World::draw_update  
 

Definition at line 137 of file Oworld.cpp.

Location * World::get_loc int    xLoc,
int    yLoc
 

Definition at line 173 of file Oworld.cpp.

References MAX_WORLD_X_LOC, and MAX_WORLD_Y_LOC.

Location * World::get_valid_loc int    xLoc,
int    yLoc
 

Definition at line 184 of file Oworld.cpp.

References MAX_WORLD_X_LOC, and MAX_WORLD_Y_LOC.

void World::init  
 

Definition at line 30 of file Oworld.cpp.

References MAP_LOC_HEIGHT, MAP_LOC_WIDTH, MAP_X1, MAP_X2, MAP_Y1, MAP_Y2, MAX_WORLD_X_LOC, MAX_WORLD_Y_LOC, ZOOM1_LOC_HEIGHT, ZOOM1_LOC_WIDTH, ZOOM2_LOC_HEIGHT, ZOOM2_LOC_WIDTH, ZOOM_LARGE, ZOOM_MEDIUM, ZOOM_SMALL, ZOOM_X1, ZOOM_X2, ZOOM_Y1, and ZOOM_Y2.

void World::set_show_map int    showMapFlag
 

Definition at line 98 of file Oworld.cpp.

void World::set_zoom_level int    newZoomLevel
 

Definition at line 83 of file Oworld.cpp.


Member Data Documentation

ZoomMatrix* World::active_zoom_matrix
 

Definition at line 29 of file OWORLD.H.

Location* World::loc_matrix
 

Definition at line 20 of file OWORLD.H.

Referenced by World().

MapMatrix World::map_matrix
 

Definition at line 23 of file OWORLD.H.

short World::max_x_loc
 

Definition at line 21 of file OWORLD.H.

short World::max_y_loc
 

Definition at line 21 of file OWORLD.H.

char World::show_map
 

Definition at line 27 of file OWORLD.H.

ZoomMatrix World::zoom1_matrix
 

Definition at line 24 of file OWORLD.H.

ZoomMatrix World::zoom2_matrix
 

Definition at line 25 of file OWORLD.H.

char World::zoom_level
 

Definition at line 28 of file OWORLD.H.


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