private void DrawBlackHole(BlackHoleBlueprint c) { var x = c.X / 64; var y = c.Y / 64; var r = c.Diameter / 2 / 64; FillCircle(x, y, r, '.'); SetMap(x, y, '@'); }
public BlackHole(GDGameScreen scrn, BlackHoleBlueprint blueprint) : base(scrn, GDConstants.ORDER_GAME_BLACKHOLE) { var pos = new FPoint(blueprint.X, blueprint.Y); _diameter = blueprint.Diameter; _radius = _diameter / 2f; _power = blueprint.Power; Position = pos; DrawingBoundingBox = new FSize(_diameter, _diameter); this.GDOwner().GDBackground.RegisterBlockedCircle(new FCircle(pos, _diameter / 2f)); }