Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

simulation
Class CBoundingObject

   in BoundingObjects.h
   in BoundingObjects.cpp
Direct Known Subclasses:
CBoundingBox, CBoundingCircle

class CBoundingObject


Inner Classes, Typedefs, and Enums
enum CBoundingObject::EBoundingType
          
 
Field Summary
 float m_height
          
 CVector2D m_pos
          
 float m_radius
          
 CBoundingObject::EBoundingType m_type
          
 
Constructor Summary
CBoundingObject()
          
 
Method Summary
 bool Contains( const CVector2D& point )
          
 bool Intersects( CBoundingObject* obj )
          
 virtual bool LooselyContains( const CVector2D& point, const CVector2D& delta )= 0
          
 virtual bool LooselyIntersects( CBoundingObject* obj, const CVector2D& delta )= 0
          
 virtual void Render( float height )= 0
          
 void SetHeight( float height )
          
 void SetPosition( float x, float y )
          
 

Field Detail

m_height

public float m_height;

m_pos

public CVector2D m_pos;

m_radius

public float m_radius;

m_type

public CBoundingObject::EBoundingType m_type;


Constructor Detail

CBoundingObject

public CBoundingObject();


Method Detail

Contains

public bool Contains( const CVector2D& point );

Intersects

public bool Intersects( CBoundingObject* obj );

LooselyContains

public virtual bool LooselyContains( const CVector2D& point, const CVector2D& delta )= 0;

LooselyIntersects

public virtual bool LooselyIntersects( CBoundingObject* obj, const CVector2D& delta )= 0;

Render

public virtual void Render( float height )= 0;

SetHeight

public void SetHeight( float height );

SetPosition

public void SetPosition( float x, float y );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD