Empirical
Public Member Functions | List of all members
emp::Physics2D< BODY_TYPE > Class Template Reference

#include <Physics2D.h>

Public Member Functions

 Physics2D (double width, double height, double max_org_diameter=20, bool detach=true)
 
 ~Physics2D ()
 
const Surface_tGetSurface () const
 
const Surface_tGetBackground () const
 
bool GetDetach () const
 
Physics2DSetDetach (bool _in)
 
Physics2DAddBody (Ptr< BODY_TYPE > in_body)
 
Physics2DAddBackground (Ptr< BODY_TYPE > in_body)
 
Physics2DClear ()
 
Physics2DKillOldest ()
 
bool TestPairCollision (BODY_TYPE &body1, BODY_TYPE &body2)
 
void Update ()
 
emp::vector< Ptr< BODY_TYPE > > & GetBodySet ()
 
emp::vector< Ptr< BODY_TYPE > > & GetBackgroundSet ()
 
const emp::vector< Ptr< BODY_TYPE > > & GetConstBodySet () const
 
const emp::vector< Ptr< BODY_TYPE > > & GetConstBackgroundSet () const
 

Constructor & Destructor Documentation

template<typename BODY_TYPE >
emp::Physics2D< BODY_TYPE >::Physics2D ( double  width,
double  height,
double  max_org_diameter = 20,
bool  detach = true 
)
inline
template<typename BODY_TYPE >
emp::Physics2D< BODY_TYPE >::~Physics2D ( )
inline

Member Function Documentation

template<typename BODY_TYPE >
Physics2D& emp::Physics2D< BODY_TYPE >::AddBackground ( Ptr< BODY_TYPE >  in_body)
inline
template<typename BODY_TYPE >
Physics2D& emp::Physics2D< BODY_TYPE >::AddBody ( Ptr< BODY_TYPE >  in_body)
inline
template<typename BODY_TYPE >
Physics2D& emp::Physics2D< BODY_TYPE >::Clear ( )
inline
template<typename BODY_TYPE >
const Surface_t& emp::Physics2D< BODY_TYPE >::GetBackground ( ) const
inline
template<typename BODY_TYPE >
emp::vector<Ptr<BODY_TYPE> >& emp::Physics2D< BODY_TYPE >::GetBackgroundSet ( )
inline
template<typename BODY_TYPE >
emp::vector<Ptr<BODY_TYPE> >& emp::Physics2D< BODY_TYPE >::GetBodySet ( )
inline
template<typename BODY_TYPE >
const emp::vector<Ptr<BODY_TYPE> >& emp::Physics2D< BODY_TYPE >::GetConstBackgroundSet ( ) const
inline
template<typename BODY_TYPE >
const emp::vector<Ptr<BODY_TYPE> >& emp::Physics2D< BODY_TYPE >::GetConstBodySet ( ) const
inline
template<typename BODY_TYPE >
bool emp::Physics2D< BODY_TYPE >::GetDetach ( ) const
inline
template<typename BODY_TYPE >
const Surface_t& emp::Physics2D< BODY_TYPE >::GetSurface ( ) const
inline
template<typename BODY_TYPE >
Physics2D& emp::Physics2D< BODY_TYPE >::KillOldest ( )
inline
template<typename BODY_TYPE >
Physics2D& emp::Physics2D< BODY_TYPE >::SetDetach ( bool  _in)
inline
template<typename BODY_TYPE >
bool emp::Physics2D< BODY_TYPE >::TestPairCollision ( BODY_TYPE &  body1,
BODY_TYPE &  body2 
)
inline
template<typename BODY_TYPE >
void emp::Physics2D< BODY_TYPE >::Update ( )
inline

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