#ifndef particlesystem_h
#define particlesystem_h

#include "vector2d.h"
#include "math.h"
#include "physpoint.h"

#include "glness.h"

#include <list>
using namespace std;

class pointsT{public:
	physpoint pos;
	float hp;
    //particlesystemT* parent;
};

class particlesystemT{public:

    particlesystemT(){

        };
    ~particlesystemT(){};

	pointsT newpoint;
	list<pointsT> particle;

    float maxhp;
	int pstexid;
        
    float r,g,b;

	void setrgb(float rr,float gg,float bb);
	void settex(const char* pstexname);

	//void init(float x, float y);

	void dophys();

	void draw();
        
    void createparticle(physpoint _pos, float hp = maxhp);

};

#endif
