예제 #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;
     }
 }
예제 #2
0
        public override bool Check(Blackhole blackhole)
        {
            Detect(blackhole);
            bool result = base.Check(blackhole);

            if (result)
            {
                Cause = "Sucked";
            }
            return(result);
        }
예제 #3
0
파일: Asteroid.cs 프로젝트: thnglhu/OrbtNN
 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);
 }
예제 #4
0
파일: Player.cs 프로젝트: thnglhu/OrbtNN
 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;
 }
예제 #5
0
파일: Player.cs 프로젝트: thnglhu/OrbtNN
 public virtual bool Check(Blackhole blackhole)
 {
     return(Collide(this, blackhole));
 }