Example #1
0
 public CParticleEffect(int MaxNumber, SColorF Color, SRectF Area, STexture texture, float Size, EParticeType Type)
 {
     _Stars         = new List <CParticle>();
     _Area          = Area;
     _Color         = Color;
     _TextureName   = String.Empty;
     _Texture       = texture;
     _MaxNumber     = MaxNumber;
     _Size          = Size;
     _Type          = Type;
     _SpawnTimer    = new Stopwatch();
     _NextSpawnTime = 0f;
 }
Example #2
0
        public CParticle(STexture texture, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
        {
            _TextureName = String.Empty;
            _Texture     = texture;
            _Color       = color;
            _Rect        = new SRectF(x, y, size, size, z);
            _Size        = size;
            _Alpha       = 1f;
            _Angle       = 0f;
            _Vx          = vx;
            _Vy          = vy;
            _Vr          = vr;
            _Vsize       = vsize;
            _LastTime    = 0f;
            _Type        = type;

            _Timer    = new Stopwatch();
            _Age      = 0f;
            _MaxAge   = maxage;
            _Rotation = (float)(CGame.Rand.NextDouble() * 360.0);
        }
Example #3
0
 public CParticleEffect(int MaxNumber, SColorF Color, SRectF Area, STexture texture, float Size, EParticeType Type)
 {
     _Stars = new List<CParticle>();
     _Area = Area;
     _Color = Color;
     _TextureName = String.Empty;
     _Texture = texture;
     _MaxNumber = MaxNumber;
     _Size = Size;
     _Type = Type;
     _SpawnTimer = new Stopwatch();
     _NextSpawnTime = 0f;
 }
Example #4
0
        public CParticle(STexture texture, SColorF color, float x, float y, float size, float maxage, float z, float vx, float vy, float vr, float vsize, EParticeType type)
        {
            _TextureName = String.Empty;
            _Texture = texture;
            _Color = color;
            _Rect = new SRectF(x, y, size, size, z);
            _Size = size;
            _Alpha = 1f;
            _Angle = 0f;
            _Vx = vx;
            _Vy = vy;
            _Vr = vr;
            _Vsize = vsize;
            _LastTime = 0f;
            _Type = type;

            _Timer = new Stopwatch();
            _Age = 0f;
            _MaxAge = maxage;
            _Rotation = (float)(CGame.Rand.NextDouble() * 360.0);
        }