RigsofRods
Soft-body Physics Simulation
FireExtinguisherAffectorFactory.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5 
6  For more information, see http://www.rigsofrods.org/
7 
8  Rigs of Rods is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License version 3, as
10  published by the Free Software Foundation.
11 
12  Rigs of Rods is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #pragma once
22 
23 #include <OgreParticleAffectorFactory.h>
24 
26 
27 namespace Ogre {
28 
31 
34 
35 
37 class FireExtinguisherAffectorFactory : public ParticleAffectorFactory
38 {
40  String getName() const { return "FireExtinguisher"; }
41 
43  Ogre::ParticleAffector* createAffector(Ogre::ParticleSystem* psys)
44  {
45  Ogre::ParticleAffector* p = OGRE_NEW FireExtinguisherAffector(psys);
46  mAffectors.push_back(p);
47  return p;
48  }
49 };
50 
53 
54 } // namespace Ogre
Ogre::FireExtinguisherAffector
This class defines a ParticleAffector which deflects particles.
Definition: FireExtinguisherAffector.h:46
Ogre::FireExtinguisherAffectorFactory::createAffector
Ogre::ParticleAffector * createAffector(Ogre::ParticleSystem *psys)
See ParticleAffectorFactory.
Definition: FireExtinguisherAffectorFactory.h:43
Ogre::FireExtinguisherAffectorFactory::getName
String getName() const
See ParticleAffectorFactory.
Definition: FireExtinguisherAffectorFactory.h:40
Ogre::FireExtinguisherAffectorFactory
Factory class for DeflectorPlaneAffector.
Definition: FireExtinguisherAffectorFactory.h:37
Ogre
Definition: ExtinguishableFireAffector.cpp:35
FireExtinguisherAffector.h