Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Member Functions | Protected Attributes
physics::Material Class Reference

Class encapsulates properties of a body. More...

#include <Material.h>

Inheritance diagram for physics::Material:
resource::Resource engine::Object

List of all members.

Public Member Functions

f32 getDynamicFriction () const
 Gets the dynamic friction of this material.
f32 getRestitution () const
 Gets the restitution of this material.
f32 getStaticFriction () const
 Gets the static friction of this material.
 Material (const std::string &name, resource::Serializer *serializer)
virtual void setDynamicFriction (f32 dynamicFriction)
 Sets the dynamic friction of this material.
virtual void setRestitution (f32 restitution)
 Sets the restitution of this material.
virtual void setStaticFriction (f32 staticFriction)
 Sets the static friction of this material.
virtual ~Material ()

Protected Member Functions

void initProperties ()
void unloadImpl ()

Protected Attributes

f32 mDynamicFriction
f32 mRestitution
f32 mStaticFriction

Detailed Description

Class encapsulates properties of a body.


Constructor & Destructor Documentation

physics::Material::Material ( const std::string &  name,
resource::Serializer serializer 
)
physics::Material::~Material ( ) [virtual]

Member Function Documentation

f32 physics::Material::getDynamicFriction ( ) const

Gets the dynamic friction of this material.

References mDynamicFriction.

f32 physics::Material::getRestitution ( ) const

Gets the restitution of this material.

References mRestitution.

f32 physics::Material::getStaticFriction ( ) const

Gets the static friction of this material.

References mStaticFriction.

void physics::Material::initProperties ( ) [protected]

Reimplemented from resource::Resource.

References mDynamicFriction, mRestitution, and mStaticFriction.

Referenced by Material().

void physics::Material::setDynamicFriction ( f32  dynamicFriction) [virtual]

Sets the dynamic friction of this material.

References mDynamicFriction.

void physics::Material::setRestitution ( f32  restitution) [virtual]

Sets the restitution of this material.

References mRestitution.

void physics::Material::setStaticFriction ( f32  staticFriction) [virtual]

Sets the static friction of this material.

References mStaticFriction.

void physics::Material::unloadImpl ( ) [protected, virtual]

Reimplemented from resource::Resource.

References mDynamicFriction, mRestitution, and mStaticFriction.


Member Data Documentation


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

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:08 by Doxygen (1.7.4)