// Copyright (C) 2002-2007 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
#define __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__

#include "IParticleAffector.h"

namespace irr
{
namespace scene
{

//! A particle affector modifies particles.
class IParticleGravityAffector : public IParticleAffector
{
public:

	//! Affects an array of particles.
	//! \param now: Current time. (Same as ITimer::getTime() would return)
	//! \param particlearray: Array of particles.
	//! \param count: Amount of particles in array.
	virtual void affect(u32 now, SParticle* particlearray, u32 count) = 0;

	//! Set the time in milliseconds when the force of the emitter is totally 
	//! lost and the particle does not move any more.
	virtual void setTimeForceLost( f32 timeForceLost ) = 0;

	//! Set the direction and force of gravity.
	virtual void setGravity( core::vector3df gravity ) = 0;

	//! Set the time in milliseconds when the force of the emitter is totally 
	//! lost and the particle does not move any more.
	virtual const f32& getTimeForceLost() const = 0;

	//! Set the direction and force of gravity.
	virtual const core::vector3df& getGravity() const = 0;
};

} // end namespace scene
} // end namespace irr


#endif // __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__

