@Override
	public int addParticle(ParticleParameters parameterObject)
	{
		for(int i = 0; i < MAX_PARTICLES; i++)
		{
			float[] color = getCRule(cID_[i]).getColor(r_[i], g_[i], b_[i], a_[i], age_[i], null);
			double size = getSRule(sID_[i]).getSize(size_[i], age_[i], props_[i]);
			if(color[3] <= 0.0f || size <= 0)
			{
				xCoord_[i] = parameterObject.getxC();
				yCoord_[i] = parameterObject.getyC();
				angle_[i] = parameterObject.getAng();
				r_[i] = parameterObject.getR();
				b_[i] = parameterObject.getB();
				g_[i] = parameterObject.getG();
				a_[i] = parameterObject.getA();
				size_[i] = parameterObject.getS();
				age_[i] = 0;
				cID_[i] = parameterObject.getcID();
				sID_[i] = parameterObject.getsID();
				pID_[i] = parameterObject.getpID();
				props_[i] = parameterObject.getP();
				return i;
			}
		}
		return -1;
	}