Exemplo n.º 1
0
 public override void Initialize(Blackhole origin, Sprite sprite, float angle, float distance, float radius, float mass, float velocity)
 {
     base.Initialize(origin, sprite, angle, distance, radius, mass, velocity);
     for (int i = 0; i < distances.Length; i++)
     {
         distances[i] = 1;
         colors[i]    = Color.Green;
     }
 }
Exemplo n.º 2
0
        public override bool Check(Blackhole blackhole)
        {
            Detect(blackhole);
            bool result = base.Check(blackhole);

            if (result)
            {
                Cause = "Sucked";
            }
            return(result);
        }
Exemplo n.º 3
0
 public virtual void Initialize(Blackhole origin, Sprite sprite, float angle, float distance, float radius, float mass)
 {
     this.angle     = angle;
     this.distance  = distance;
     this.radius    = radius;
     this.mass      = mass;
     this.blackhole = origin;
     velocity       = 0;
     Update();
     Initialize(sprite, Position);
 }
Exemplo n.º 4
0
 public virtual void Initialize(Blackhole origin, Sprite sprite, float angle, float distance, float radius, float mass, float velocity)
 {
     if (distance > max)
     {
         distance = max;
     }
     Initialize(origin, sprite, angle, distance, radius, mass);
     this.velocity = velocity;
     bonus.Clear();
     backup = mass;
     Alive  = true;
     total  = 0;
 }
Exemplo n.º 5
0
 public virtual bool Check(Blackhole blackhole)
 {
     return(Collide(this, blackhole));
 }