Amulets & Armor
v1.02
Open Source Game
|
Overhead Map. More...
Macros | |
#define | INTERNAL_MAX_OFFSET_X 320 |
#define | INTERNAL_MAX_OFFSET_Y 200 |
#define | INTERNAL_MAX_SIZE_X 320 |
#define | INTERNAL_MAX_SIZE_Y 200 |
#define | OVERHEAD_PASSIBLE_LINE 47 |
#define | OVERHEAD_SOLID_LINE 31 |
Overhead Map.
The Overhead or "Magic" map is rendered here. Various options turn on features to show secret areas or even objects.
#define INTERNAL_MAX_OFFSET_X 320 |
#define INTERNAL_MAX_OFFSET_Y 200 |
#define INTERNAL_MAX_SIZE_X 320 |
#define INTERNAL_MAX_SIZE_Y 200 |
#define OVERHEAD_PASSIBLE_LINE 47 |
#define OVERHEAD_SOLID_LINE 31 |
T_void OverheadAddFeatures | ( | F_overheadFeature | flags) |
OverheadAddFeatures turns on some of the features being used.
flags | – Flags to be added |
OverheadDraw is the heart of the overhead drawing. This routine is should be part of the 3d view callback routine and have the correct boundaries of the view.
left | – Left of allowed view |
top | – Top of allowed view |
right | – Right of allowed view |
bottom | – Bottom of allowed view |
OverheadFinish undo's all the bad things remainging with the overhead.
F_overheadFeature OverheadGetFeatures | ( | T_void | ) |
OverheadGetFeatures gets all the features used by the overhead.
OverheadGetOffsetX returns the number of pixels to place overhead away from the left or right edge.
OverheadGetOffsetY returns the number of pixels to place overhead away from the top or bottom edge.
E_overheadPosition OverheadGetPosition | ( | T_void | ) |
OverheadGetPosition tells where the overhead is placed relative to the view.
OverheadGetSizeX returns the width of the overhead view.
OverheadGetSizeY returns the height of the overhead view.
OverheadGetZoomFactor gets the scaling factor used when drawing the the view.
OverheadInitialize clears out all the memory that is needed for the first use of this module.
T_void OverheadRemoveFeatures | ( | F_overheadFeature | flags) |
OverheadRemoveFeatures turns off some of the features being used.
flags | – Flags to be cleared |
OverheadSetCenterPoint declares where the view should be centered over. This routine should be called before every call to OverheadDraw.
x | – X Point to center view over |
y | – Y Point to center view over |
T_void OverheadSetFeatures | ( | F_overheadFeature | flags) |
OverheadAddFeatures sets all the features to be used by the overhead.
flags | – Flags to be on |
T_void OverheadSetNumPages | ( | void | ) |
OverheadSetNumPages changes the number of pages that are "smeared" together when drawing the overhead view.
NOTE: Changing the number of pages clears all the old pages.
OverheadSetOffset tells the overhead module how many pixels off the left or right (x) edge and how many pixels off the top or bottom (y) edge. The offset depends on the position of the view (see OverheadSetPosition).
offsetX | – Pixels off the left or right |
offsetY | – Pixels off the top or bottom |
T_void OverheadSetPosition | ( | E_overheadPosition | position) |
OverheadSetPosition tells where to place the overhead relative to the view.
position | – What location the overhead should be |
OverheadSetSize changes the height and width of the overhead view.
NOTE: Setting a new size clears any previous pages.
sizeX | – Width of overhead view |
sizeY | – Height of the overhead view |
OverheadSetZoomFactor sets the scaling factor used when drawing the the view.
zoom | – Zoom factor, smaller value is more detail. |