home *** CD-ROM | disk | FTP | other *** search
- /********************************************************************
- FILENAME: VIEW.HPP
- AUTHOR : JAKE HILL
- DATE : 12/1/94
-
- Copyright (c) 1994 by Jake Hill:
- If you use any part of this code in your own project, please credit
- me in your documentation and source code. Thanks.
- ********************************************************************/
-
- #define C
-
- #ifndef VIEW_HPP
- #define VIEW_HPP
-
- #include "doom.h"
- #include <stdio.h>
-
- /* Each array is dynamically allocated based on info in the WAD file. */
- extern seg *Seg_Array;
- extern side *Side_Array;
- extern line *Line_Array;
- extern node *Node_Array;
- extern node **PNode_Array;
- extern sector *Sector_Array;
- extern vertex *Vertex_Array;
- extern ssector *SSector_Array;
- extern blockmap *Blockmap_Array;
- extern blockmap_header *Blockmap_Header;
-
- /* A temp variable - probably a better way of doing this. */
- extern wall Wall;
-
- /* Player's X,Y,Z location and Height over floor. */
- extern short Px, Py, Pz, Ph;
- /* The angle the player is facing. */
- extern unsigned short Pangle;
- /* The angle made by the left side of the player's view cone. */
- extern unsigned short LeftAngle;
-
- /* The sine & cosine of the angle the player is facing. */
- extern long CosPangle, SinPangle;
-
- /* The node number of the Root Node in the BSP. */
- extern short MaxNode;
- /* The height of the floor and ceiling currently being drawn. */
- extern short floor_ht, ceiling_ht;
-
- #endif
-