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; } }
public override bool Check(Blackhole blackhole) { Detect(blackhole); bool result = base.Check(blackhole); if (result) { Cause = "Sucked"; } return(result); }
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); }
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; }
public virtual bool Check(Blackhole blackhole) { return(Collide(this, blackhole)); }