// Экземпляр Particle Stuct
частный Sprite [] mParticles = новый Sprite [10];
/// Particle emitter Properties
private Context mContext;
private int mPositionX, mPositionY, mWidth, mHeight, mNumParticles;
private Rect srcRect, dstRect;
/*** Constructor ! ***/
public ParticleEmitter(Context c, Sprite spriteImage, int num_particles) {
super(c);
mContext = c;
Sprite[] Particles = new Sprite[10];
Particles[0] = new Sprite(mContext, R.drawable.icon);
// mParticles = spriteImage;
//mParticles[num_particles].InitAttributes(c, R.drawable.icon);
// Allocate Particles instances and copy into mParticle member
//mParticles = new Sprite[num_particles];
// Sprite sprite1 = new Sprite(mContext, R.drawable.icon);
// Sprite sprite2 = new Sprite(mContext, R.drawable.icon);
// mParticles[0] = spriteImage;
// mParticles[1] = sprite2;
/* for(int i = 0; i < num_particles; i++)
{
mParticles[i].InitAttributes(mContext, R.drawable.icon);
mParticles[i].setXPosition(i);
} */
// mParticles[0].InitAttributes(mContext, R.drawable.icon);
// nullify our positioning attributes
mPositionX = mPositionY = 0;
}