hoa_map::private_map::MapFrame Class Reference

Retains information about how the next map frame should be drawn. More...

#include <map.h>

Collaboration diagram for hoa_map::private_map::MapFrame:

Collaboration graph
[legend]
List of all members.

Public Attributes

float bottom_edge
float left_edge
 The position coordinates of the screen edges. These members are in terms of the map grid 16x16 pixel coordinates that map objects use. The presense of these coordinates make it easier for map objects to figure out whether or not they should be drawn on the screen. Note that these are not used as drawing cursor positions, but rather are map grid coordinates indicating where the screen edges lie.
uint8 num_draw_cols
 The number of columns and rows of tiles to draw on the screen.
uint8 num_draw_rows
float right_edge
int16 starting_col
 The column and row indeces of the starting tile to draw (the top-left tile).
int16 starting_row
float tile_x_start
 The x and y position screen coordinates to start drawing tiles from.
float tile_y_start
float top_edge

Detailed Description

Retains information about how the next map frame should be drawn.

****************************************************************************

This class is used by the MapMode class to determine how the next map frame should be drawn. This includes which tiles will be visible and the offset coordinates for the screen. Map objects also use this information to determine where (and if) they should be drawn.

Note:
The MapMode class keeps an active object of this class with the latest information about the map. It should be the only instance of this class that is needed.

Definition at line 131 of file map.h.


Member Data Documentation

float hoa_map::private_map::MapFrame::bottom_edge

Definition at line 148 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::private_map::MapObject::DrawHelper().

float hoa_map::private_map::MapFrame::left_edge

The position coordinates of the screen edges. These members are in terms of the map grid 16x16 pixel coordinates that map objects use. The presense of these coordinates make it easier for map objects to figure out whether or not they should be drawn on the screen. Note that these are not used as drawing cursor positions, but rather are map grid coordinates indicating where the screen edges lie.

Definition at line 148 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo().

uint8 hoa_map::private_map::MapFrame::num_draw_cols

The number of columns and rows of tiles to draw on the screen.

Definition at line 137 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

uint8 hoa_map::private_map::MapFrame::num_draw_rows

Definition at line 137 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

float hoa_map::private_map::MapFrame::right_edge

Definition at line 148 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::private_map::MapObject::DrawHelper().

int16 hoa_map::private_map::MapFrame::starting_col

The column and row indeces of the starting tile to draw (the top-left tile).

Definition at line 134 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

int16 hoa_map::private_map::MapFrame::starting_row

Definition at line 134 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

float hoa_map::private_map::MapFrame::tile_x_start

The x and y position screen coordinates to start drawing tiles from.

Definition at line 140 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

float hoa_map::private_map::MapFrame::tile_y_start

Definition at line 140 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::MapMode::Draw().

float hoa_map::private_map::MapFrame::top_edge

Definition at line 148 of file map.h.

Referenced by hoa_map::MapMode::_CalculateDrawInfo(), and hoa_map::private_map::MapObject::DrawHelper().


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 23:14:52 2007 for Hero of Allacrost by  doxygen 1.5.1