#include"stdafx.h"
#include"cShell.h"
#include"math.h"
using namespace std;
//The most basic particle of fireworks, the fireworks effect is made up of cparticle
cParticle::cParticle() {

	
}
cParticle::~cParticle() {

}
unsigned int cParticle::getCurrentTime() {
	this->c_currentime = GetTickCount();
	return c_currentime;
//get the particle's current time
}
//void cParticle::changvel(int i) {
//	double pi = 3.1415926;
//	this->c_vel_x = 0.6 * i/10*(cos(pi * i*2 / particlenumber));
//	this->c_vel_y = 0.6 * i/10*(sin(pi * i *2/ particlenumber));
//	//one circle
//
//	/*if (i >= particlenumber / 2)
//	{
//		this->c_vel_x = 0.5 * (cos(pi * i * 4 / particlenumber));
//		this->c_vel_y = 0.5 * (sin(pi * i * 4 / particlenumber));
//	}
//	else
//	{
//		this->c_vel_x = 0.25 * (cos(pi * i * 4 / particlenumber));
//		this->c_vel_y = 0.25 * (sin(pi * i * 4 / particlenumber));
//	}*/
//	//two circle
//
////change the velocity of each particle, the direction of the velocity is determined by the variable I
//}
void cParticle::slowvel(float vel) {
	this->c_vel_y =vel -0.5;
}
