UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MoveClip Class Reference

The bounding box of a moving object. More...

#include <moveclip.h>

Inherited by MoveClipCL, and MoveClipSV.

Public Member Functions

void calcBounds ()
 Create the bounding box for the entire move. More...
 

Data Fields

AABB clipBox
 
AABB objBox
 
Line moveLine
 
int contentmask
 

Detailed Description

The bounding box of a moving object.

Definition at line 33 of file moveclip.h.

Member Function Documentation

void MoveClip::calcBounds ( )
inline

Create the bounding box for the entire move.

Note
Box is expanded by 1

Definition at line 48 of file moveclip.h.

References clipBox, AABB::expand(), moveLine, objBox, and AABB::set().

Referenced by CL_Trace(), and SV_Trace().

Field Documentation

AABB MoveClip::clipBox

enclose the test object along entire move

Definition at line 36 of file moveclip.h.

Referenced by calcBounds(), and SV_ClipMoveToEntities().

int MoveClip::contentmask

search these in your trace - see MASK_*

Definition at line 39 of file moveclip.h.

Referenced by CL_ClipMoveToLEs(), CL_Trace(), SV_ClipMoveToEntities(), and SV_Trace().

Line MoveClip::moveLine

the line along which the object moves

Definition at line 38 of file moveclip.h.

Referenced by calcBounds(), CL_ClipMoveToLEs(), CL_Trace(), SV_ClipMoveToEntities(), and SV_Trace().

AABB MoveClip::objBox

size of the moving object

Definition at line 37 of file moveclip.h.

Referenced by calcBounds(), CL_ClipMoveToLEs(), CL_Trace(), SV_ClipMoveToEntities(), and SV_Trace().


The documentation for this class was generated from the following file: