Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3923 in orxonox.OLD for orxonox/branches/particleEngine/src/lib


Ignore:
Timestamp:
Apr 21, 2005, 3:04:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: added the particleEngine-class

Location:
orxonox/branches/particleEngine/src/lib/graphics/partices
Files:
1 added
2 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/partices/particle_engine.cc

    r3922 r3923  
    2424   \brief standard constructor
    2525*/
    26 ProtoSingleton::ProtoSingleton ()
     26ParticleEngine::ParticleEngine ()
    2727{
    28    this->setClassName ("ProtoSingleton");
     28   this->setClassName ("ParticleEngine");
    2929
    3030}
     
    3333   \brief the singleton reference to this class
    3434*/
    35 ProtoSingleton* ProtoSingleton::singletonRef = NULL;
     35ParticleEngine* ParticleEngine::singletonRef = NULL;
    3636
    3737/**
    3838   \returns a Pointer to this Class
    3939*/
    40 ProtoSingleton* ProtoSingleton::getInstance(void)
     40ParticleEngine* ParticleEngine::getInstance(void)
    4141{
    42   if (!ProtoSingleton::singletonRef)
    43     ProtoSingleton::singletonRef = new ProtoSingleton();
    44   return ProtoSingleton::singletonRef;
     42  if (!ParticleEngine::singletonRef)
     43    ParticleEngine::singletonRef = new ParticleEngine();
     44  return ParticleEngine::singletonRef;
    4545}
    4646
    4747/**
    48    \brief standard deconstructor
     48   \brief standard destructor
    4949
    5050*/
    51 ProtoSingleton::~ProtoSingleton ()
     51ParticleEngine::~ParticleEngine ()
    5252{
    53   ProtoSingleton::singletonRef = NULL;
     53  ParticleEngine::singletonRef = NULL;
    5454
    5555}
  • orxonox/branches/particleEngine/src/lib/graphics/partices/particle_engine.h

    r3922 r3923  
    11/*!
    2     \file proto_singleton.h
    3     \brief Definition of the proto class template, used quickly start work
    4    
    5     a simple file to copy and create a singleton-class from
     2    \file particle_engine.h
     3    \brief Definition of the ParticleEngine
    64*/
    75
    8 #ifndef _PROTO_SINGLETON_H
    9 #define _PROTO_SINGLETON_H
     6#ifndef _PARTICLE_ENGINE_H
     7#define _PARTICLE_ENGINE_H
    108
    119#include "base_object.h"
    1210
    13 // FORWARD DEFINITION \\
     11// FORWARD DEFINITION
    1412
    1513//! A default singleton class.
    16 class ProtoSingleton : public BaseObject {
     14class ParticleEngine : public BaseObject {
    1715
    1816 public:
    19   static ProtoSingleton* getInstance(void);
    20   virtual ~ProtoSingleton(void);
     17  static ParticleEngine* getInstance(void);
     18  virtual ~ParticleEngine(void);
    2119
    2220 private:
    23   ProtoSingleton(void);
    24   static ProtoSingleton* singletonRef;
     21  ParticleEngine(void);
     22  static ParticleEngine* singletonRef;
    2523};
    2624
    27 #endif /* _PROTO_SINGLETON_H */
     25#endif /* _PARTICLE_ENGINE_H */
Note: See TracChangeset for help on using the changeset viewer.