2015-02-11 18:14:22 +08:00
|
|
|
/****************************************************************************
|
2015-02-12 16:09:08 +08:00
|
|
|
Copyright (c) 2015 Chukong Technologies Inc.
|
2015-02-11 18:14:22 +08:00
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CC_PU_PARTICLE_3D_AFFECTOR_MANAGER_H__
|
|
|
|
#define __CC_PU_PARTICLE_3D_AFFECTOR_MANAGER_H__
|
|
|
|
|
|
|
|
#include "base/CCRef.h"
|
2015-02-12 17:54:27 +08:00
|
|
|
#include "Particle3D/ParticleUniverse/CCPUParticle3DScriptTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DAffector.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DAlignAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DBaseColliderTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DBaseForceAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DBoxColliderTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DCollisionAvoidanceAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DColorAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DFlockCenteringAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DForceFieldAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DGeometryRotatorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DGravityAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DInterParticleColliderTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DJetAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DLineAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DLinearForceAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DParticleFollowerTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DPathFollowerTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DPlaneColliderTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DRandomiserTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DScaleAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DScaleVelocityAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DSineForceAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DSphereColliderTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DTextureAnimatorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DTextureRotatorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DVelocityMatchingAffectorTranslator.h"
|
|
|
|
#include "Particle3D/ParticleUniverse/ParticleAffectors/CCPUParticle3DVortexAffectorTranslator.h"
|
2015-02-11 18:14:22 +08:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
|
|
|
class PUParticle3DAffectorManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static PUParticle3DAffectorManager* Instance();
|
|
|
|
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
PUScriptTranslator* getTranslator(const std::string &type);
|
|
|
|
PUParticle3DAffector* createAffector(const std::string &type);
|
|
|
|
|
|
|
|
|
|
|
|
CC_CONSTRUCTOR_ACCESS:
|
|
|
|
PUParticle3DAffectorManager();
|
|
|
|
~PUParticle3DAffectorManager();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
PUParticle3DAlignAffectorTranslator _alignAffectorTranslator;
|
|
|
|
PUParticle3DBaseColliderTranslator _baseColliderTranslator;
|
|
|
|
PUParticle3DBaseForceAffectorTranslator _baseForceAffectorTranslator;
|
|
|
|
PUParticle3DBoxColliderTranslator _boxColliderTranslator;
|
|
|
|
PUParticle3DCollisionAvoidanceAffectorTranslator _collisionAvoidanceAffectorTranstor;
|
|
|
|
PUParticle3DColorAffectorTranslator _colorAffectorTranslator;
|
|
|
|
PUParticle3DFlockCenteringAffectorTranslator _flockCenteringAffectorTranslator;
|
|
|
|
PUParticle3DForceFieldAffectorTranslator _forceFieldAffectorTranslator;
|
|
|
|
PUParticle3DGeometryRotatorTranslator _geometryRotatorTranslator;
|
|
|
|
PUParticle3DGravityAffectorTranslator _gravityAffectorTranslator;
|
|
|
|
PUParticle3DInterParticleColliderTranslator _interParticleColliderTranslator;
|
|
|
|
PUParticle3DJetAffectorTranslator _jetAffectorTranslator;
|
|
|
|
PUParticle3DLineAffectorTranslator _lineAffectorTranslator;
|
|
|
|
PUParticle3DLinearForceAffectorTranslator _linearForceAffectorTranslator;
|
|
|
|
PUParticle3DParticleFollowerTranslator _particleFollowerTranslator;
|
|
|
|
PUParticle3DPathFollowerTranslator _pathFollowerTranslator;
|
|
|
|
PUParticle3DPlaneColliderTranslator _planeColliderTranslator;
|
|
|
|
PUParticle3DRandomiserTranslator _randomiserTranslator;
|
|
|
|
PUParticle3DScaleAffectorTranslator _scaleAffectorTranslator;
|
|
|
|
PUParticle3DScaleVelocityAffectorTranslator _scaleVelocityAffectorTranslator;
|
|
|
|
PUParticle3DSineForceAffectorTranslator _sineForceAffectorTranslator;
|
|
|
|
PUParticle3DSphereColliderTranslator _sphereColliderTranslator;
|
|
|
|
PUParticle3DTextureAnimatorTranslator _textureAnimatorTranslator;
|
|
|
|
PUParticle3DTextureRotatorTranslator _textureRotatorTranslator;
|
|
|
|
PUParticle3DVelocityMatchingAffectorTranslator _velocityMatchingAffectorTranslator;
|
|
|
|
PUParticle3DVortexAffectorTranslator _vortexAffectorTranslator;
|
|
|
|
};
|
|
|
|
|
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|