Beispiel #1
0
 public void Init()
 {
     Size      = new Size(5, 5);
     Velocity  = 6f;
     this.ID   = "Projectile" + MathAssist.Rand(1, 0).ToString();
     Color     = Color.Yellow;
     IsVisible = true;
 }
Beispiel #2
0
 public StarFighter(Color color, SizeF size, Vector2F location, float angle)
 {
     this.Location = location;
     this.Angle    = angle;
     this.Color    = color;
     this.IsDead   = false;
     this.Size     = size;
     this.ID       = "fighter" + MathAssist.Rand(1, 0).ToString();
 }
Beispiel #3
0
 public Thrust(Vector2F location, Color color, double angle, float velocity, int delay)
 {
     this.Velocity = velocity;
     this.Location = location;
     this.Color    = color;
     this.Angle    = angle;
     this.Size     = new Size(3, 3);
     delayFade     = new Framework2D.Delay(delay);
     this.ID       = "Thrust" + MathAssist.Rand(1, 0).ToString();
 }
Beispiel #4
0
 public Shockwave(Color color, Vector2F location, float velocity, int delayPerFrame, float radiusMax, float velocity2D, double angle)
 {
     Color      = color;
     waveTiming = new Delay(delayPerFrame);
     RaduisMax  = radiusMax;
     Location   = location;
     Velocity   = velocity;
     ID         = MathAssist.Rand(1, 0).ToString();
     v2d        = velocity2D;
     Angle      = angle;
     Init();
 }