Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CollisionFaces Class Reference

#include <OPC_RayCollider.h>

Inheritance diagram for CollisionFaces:
Container

Public Member Functions

 CollisionFaces ()
 Constructor. More...
 
 ~CollisionFaces ()
 Destructor. More...
 
inline_ udword GetNbFaces () const
 
inline_ const CollisionFaceGetFaces () const
 
inline_ void Reset ()
 
inline_ void AddFace (const CollisionFace &face)
 

Additional Inherited Members

- Private Member Functions inherited from Container
 Container ()
 
 Container (const Container &object)
 
 Container (udword size, float growth_factor)
 
 ~Container ()
 
inline_ ContainerAdd (udword entry)
 
inline_ ContainerAdd (const udword *entries, udword nb)
 
inline_ ContainerAdd (float entry)
 
inline_ ContainerAdd (const float *entries, udword nb)
 
inline_ ContainerAddUnique (udword entry)
 Add unique [slow]. More...
 
ContainerEmpty ()
 
inline_ void Reset ()
 
inline_ void ForceSize (udword size)
 
bool SetSize (udword nb)
 
bool Refit ()
 
bool Contains (udword entry, udword *location=null) const
 
bool Delete (udword entry)
 
bool DeleteKeepingOrder (udword entry)
 
inline_ void DeleteLastEntry ()
 Deletes the very last entry. More...
 
inline_ void DeleteIndex (udword index)
 Deletes the entry whose index is given. More...
 
ContainerFindNext (udword &entry, FindMode find_mode=FIND_CLAMP)
 
ContainerFindPrev (udword &entry, FindMode find_mode=FIND_CLAMP)
 
inline_ udword GetNbEntries () const
 Returns the current number of entries. More...
 
inline_ udword GetEntry (udword i) const
 Returns ith entry. More...
 
inline_ udwordGetEntries () const
 Returns the list of entries. More...
 
inline_ udword GetFirst () const
 
inline_ udword GetLast () const
 
inline_ float GetGrowthFactor () const
 Returns the growth factor. More...
 
inline_ void SetGrowthFactor (float growth)
 Sets the growth factor. More...
 
inline_ bool IsFull () const
 Checks the container is full. More...
 
inline_ BOOL IsNotEmpty () const
 Checks the container is empty. More...
 
inline_ udword operator[] (udword i) const
 Read-access as an array. More...
 
inline_ udwordoperator[] (udword i)
 Write-access as an array. More...
 
udword GetUsedRam () const
 
void operator= (const Container &object)
 Operator for "Container A = Container B". More...
 
inline_ udword GetNbContainers () const
 
inline_ udword GetTotalBytes () const
 

Detailed Description

This class is a dedicated collection of CollisionFace.

Author
Pierre Terdiman
Version
1.3
Date
March, 20, 2001

Definition at line 36 of file OPC_RayCollider.h.

Constructor & Destructor Documentation

CollisionFaces::CollisionFaces ( )
inline

Constructor.

Definition at line 40 of file OPC_RayCollider.h.

40 {}
CollisionFaces::~CollisionFaces ( )
inline

Destructor.

Definition at line 42 of file OPC_RayCollider.h.

42 {}

Member Function Documentation

inline_ void CollisionFaces::AddFace ( const CollisionFace face)
inline
inline_ const CollisionFace* CollisionFaces::GetFaces ( ) const
inline

Definition at line 45 of file OPC_RayCollider.h.

References Container::GetEntries().

45 { return (const CollisionFace*)GetEntries(); }
inline_ udword CollisionFaces::GetNbFaces ( ) const
inline

Definition at line 44 of file OPC_RayCollider.h.

References Container::GetNbEntries().

44 { return GetNbEntries()>>2; }
inline_ void CollisionFaces::Reset ( )
inline

Definition at line 47 of file OPC_RayCollider.h.

References Container::Reset().

47 { Container::Reset(); }

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