コード例 #1
0
        private void DrawVoidCircle(VoidCircleBlueprint c)
        {
            var x = c.X / 64;
            var y = c.Y / 64;

            SetMap(x - 0.5f, y, '(');
            SetMap(x + 0.0f, y, 'X');
            SetMap(x + 0.5f, y, ')');
        }
コード例 #2
0
ファイル: VoidCircle.cs プロジェクト: sorke/GridDominance
        public VoidCircle(GDGameScreen scrn, VoidCircleBlueprint blueprint) : base(scrn, GDConstants.ORDER_GAME_WALL)
        {
            var pos = new FPoint(blueprint.X, blueprint.Y);

            _diameter = blueprint.Diameter;

            Position = pos;

            DrawingBoundingBox = new FSize(_diameter + 2 * MARGIN_TEX, _diameter + 2 * MARGIN_TEX);

            this.GDOwner().GDBackground.RegisterBlockedCircle(new FCircle(pos, _diameter / 2f));
        }