View Drawing.
More...
View Drawing.
Top level control for drawing the current 3D view.
- See Also
- http://www.amuletsandarmor.com/AALicense.txt
#define DISTANCE_TO_PICKUP 24 |
#define SECTOR_ANIMATE_FLOOR_FLAG 32 |
#define SECTOR_DIP_FLAG 16 |
#define SECTOR_SHIFT_X_FLAG 4 |
#define SECTOR_SHIFT_Y_FLAG 8 |
#define TIME_BETWEEN_SECTOR_DAMAGE 35 |
ViewDraw builds and draws the current view on the screen.
ViewEarthquakeOff stops the view shake randomly.
ViewEarthquakeOn makes the view shake randomly.
- Parameters
-
duration | – How long the earthquake should occur |
ViewFinish is called to remove all items used by View that was not used by the map.
ViewSetDarkSight returns how well the player sees in the dark.
- Returns
- 0 = Normal, 127=perfect night vision, -127=Blind.
ViewGetMiddleTarget finds the first non-passable target in front of the player.
- Returns
- Middle target object pointer or NULL if none.
ViewGetXYTarget finds the first passable or non-passable object under the given x & y pixel location on the screen (relative to the upper left hand corner of the screen)..
- Parameters
-
x | – x location from the view 's upperleft |
y | – y location from the view 's upperleft |
- Returns
- XY target object pointer or NULL if none.
ViewInitialize sets up all the variables necessary for the current 3D view. Calls are made appropriately to the 3D engine.
ViewIsAt checks to see if mouse based XY is over the 3d view.
- Parameters
-
x | – x location of mouse X |
y | – y location of mouse Y |
- Returns
- TRUE = over, FALSE = else
ViewIsEarthquakeOn tells if the earthquake is happening.
ViewIsUnderwater tells if the view is under the water.
ViewSetDarkSight sets how well the player sees in the dark.
- Parameters
-
darkSightValue | – 0 = Normal, 127=perfect night vision, -127=Blind. |
ViewSetOverlayHandler declares a pointer to a function that is to be called each time the view is drawn but not shown. This allows the system to draw objects and images on top of the view as the view is moving.
- Parameters
-
handler | – Function to draw overlay |
ViewSetPalette changes the palette used in the view.
- Parameters
-
viewPalette | – Palette to use in view |
ViewUnderwaterOff changes the view back into the regular palette.
ViewUnderwaterOn changes the view to look like it is underwater.
T_void ViewUpdateFormsOverViewDisable |
( |
void |
) | |
|
T_void ViewUpdateFormsOverViewEnable |
( |
void |
) | |
|
ViewUpdatePlayer is the routine called to update all the exterior events that happen, even when a player is standing still.