00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 // Includes 00012 #include "Fountain.h" 00013 #include <OpenCAL/Object.h> 00014 #include <OpenCAL/Renderer.h> 00015 using namespace OpenCAL; 00016 00017 using namespace std; 00018 00019 00020 /****************************** 00021 * Constructors and destructor * 00022 ******************************/ 00023 00024 Fountain::Fountain(System *parent) 00025 : ParticleSystem(parent), m_lifeSpan(10.0f) 00026 { 00027 } 00028 00029 Fountain::~Fountain() 00030 { 00031 } 00032 00033 00034 /************************ 00035 * Get and set functions * 00036 ************************/ 00037 00038 00039 /****************** 00040 * Other functions * 00041 ******************/ 00042 00043 00044 /********************** 00045 * Protected functions * 00046 **********************/ 00047 00048 void Fountain::killParticles() 00049 { 00050 for(unsigned int i = 0; i < m_objects.size(); ++i) 00051 { 00052 PointMass *particle = getPoint(i); 00053 //if(m_ages[particle] > 00054 } 00055 } 00056 00057 void Fountain::bornParticles() 00058 { 00059 }