Subversion Repositories SoapBoxCore


Rev 12 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#region "SoapBox.Demo License"
/// <header module="SoapBox.Demo">
/// Copyright (C) 2009 SoapBox Automation Inc., All Rights Reserved.
/// Contact: SoapBox Automation Licencing (
/// This file is part of SoapBox Demo.
/// GNU Lesser General Public License Usage
/// SoapBox Demo is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Lesser General Public License
/// as published by the Free Software Foundation, either version 3 of the
/// License, or (at your option) any later version.
/// SoapBox Demo is distributed in the hope that it will be useful,
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
/// GNU Lesser General Public License for more details.
/// You should have received a copy of the GNU Lesser General Public License
/// along with SoapBox Demo. If not, see <>.
/// </header>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SoapBox.Core.Arena;
using System.Windows;
using SoapBox.Core;

namespace SoapBox.Demo.PinBall
    public class PinBallLevelDisplay : AbstractArenaDecorationBody
        public const float WIDTH = 200f;
        public const float HEIGHT = 110f;

        public PinBallLevelDisplay(PinBallTable table, Point startingPoint)
            InitialX = (float)startingPoint.X;
            InitialY = (float)startingPoint.Y;

            Sprite = new PinBallLevelDisplaySprite();

        public void SetLevel(int level)
            PinBallLevelDisplaySprite s = Sprite as PinBallLevelDisplaySprite;
            if (s != null)
                if (level > s.Level)
                s.Level = level;