Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Box Class Reference

#include <ATypes.h>

List of all members.

Public Methods

 Box ()
 Box (FLOAT Left, FLOAT Top, FLOAT Right, FLOAT Bottom)
bool isContain (Vec2D pt)

Public Attributes

FLOAT left
FLOAT right
FLOAT top
FLOAT bottom


Constructor & Destructor Documentation

Box::Box   [inline]
 

Definition at line 57 of file ATypes.h.

References bottom, left, right, and top.

00057 {  left=0.0f; right=1.0f; top=0.0f; bottom=1.0f; }

Box::Box FLOAT    Left,
FLOAT    Top,
FLOAT    Right,
FLOAT    Bottom
[inline]
 

Definition at line 58 of file ATypes.h.

References bottom, left, right, and top.

00059         {
00060                 left=Left; right=Right; top=Top; bottom=Bottom;
00061         }


Member Function Documentation

bool Box::isContain Vec2D    pt [inline]
 

Definition at line 62 of file ATypes.h.

References bottom, left, right, and top.

Referenced by Overhead::overhead_render(), Overhead::overhead_update(), Overhead::processOverheadInput(), renderMainMenu(), renderMultiplayMenu(), updateMainMenu(), and updateMultiplayMenu().

00063         {
00064                 return pt.x >= left && pt.x <= right && pt.y >= top && pt.y <= bottom;
00065         }


Member Data Documentation

FLOAT Box::bottom
 

Definition at line 67 of file ATypes.h.

Referenced by Box(), drawBox(), isContain(), Overhead::overhead_render(), and Overhead::processOverheadInput().

FLOAT Box::left
 

Definition at line 67 of file ATypes.h.

Referenced by Box(), drawBox(), isContain(), Overhead::overhead_render(), Overhead::processOverheadInput(), and renderMultiplayMenu().

FLOAT Box::right
 

Definition at line 67 of file ATypes.h.

Referenced by Box(), drawBox(), isContain(), Overhead::overhead_render(), and Overhead::processOverheadInput().

FLOAT Box::top
 

Definition at line 67 of file ATypes.h.

Referenced by Box(), drawBox(), isContain(), Overhead::overhead_render(), Overhead::processOverheadInput(), and renderMultiplayMenu().


The documentation for this class was generated from the following file:
Generated on Wed Apr 23 05:52:03 2003 for Modern Warfare by doxygen1.3-rc2