PixelLightAPI  .
BodySphere.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: BodySphere.h                                   *
00003  *
00004  *  Copyright (C) 2002-2012 The PixelLight Team (http://www.pixellight.org/)
00005  *
00006  *  This file is part of PixelLight.
00007  *
00008  *  PixelLight is free software: you can redistribute it and/or modify
00009  *  it under the terms of the GNU Lesser General Public License as published by
00010  *  the Free Software Foundation, either version 3 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  PixelLight is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  *  GNU Lesser General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU Lesser General Public License
00019  *  along with PixelLight. If not, see <http://www.gnu.org/licenses/>.
00020 \*********************************************************/
00021 
00022 
00023 #ifndef __PLPHYSICS_BODYSPHERE_H__
00024 #define __PLPHYSICS_BODYSPHERE_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLPhysics/Body.h"
00032 
00033 
00034 //[-------------------------------------------------------]
00035 //[ Namespace                                             ]
00036 //[-------------------------------------------------------]
00037 namespace PLPhysics {
00038 
00039 
00040 //[-------------------------------------------------------]
00041 //[ Classes                                               ]
00042 //[-------------------------------------------------------]
00043 /**
00044 *  @brief
00045 *    Abstract PL physics sphere body
00046 */
00047 class BodySphere : public Body {
00048 
00049 
00050     //[-------------------------------------------------------]
00051     //[ Public functions                                      ]
00052     //[-------------------------------------------------------]
00053     public:
00054         /**
00055         *  @brief
00056         *    Destructor
00057         */
00058         PLPHYSICS_API virtual ~BodySphere();
00059 
00060         /**
00061         *  @brief
00062         *    Returns the sphere radius
00063         *
00064         *  @return
00065         *    The sphere radius
00066         */
00067         PLPHYSICS_API float GetRadius() const;
00068 
00069 
00070     //[-------------------------------------------------------]
00071     //[ Protected functions                                   ]
00072     //[-------------------------------------------------------]
00073     protected:
00074         /**
00075         *  @brief
00076         *    Constructor
00077         *
00078         *  @param[in] cWorld
00079         *    World this body is in
00080         *  @param[in] cBodyImpl
00081         *    Reference to the physics API specific body implementation
00082         *  @param[in] fRadius
00083         *    Sphere radius
00084         */
00085         PLPHYSICS_API BodySphere(World &cWorld, BodyImpl &cBodyImpl, float fRadius);
00086 
00087 
00088     //[-------------------------------------------------------]
00089     //[ Protected data                                        ]
00090     //[-------------------------------------------------------]
00091     protected:
00092         float m_fRadius;    /**< Sphere radius */
00093 
00094 
00095 };
00096 
00097 
00098 //[-------------------------------------------------------]
00099 //[ Namespace                                             ]
00100 //[-------------------------------------------------------]
00101 } // PLPhysics
00102 
00103 
00104 #endif // __PLPHYSICS_BODYSPHERE_H__


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:08:52
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported