Ballz.Logic.LogicControl.LogicControl C# (CSharp) Method

LogicControl() public method

public LogicControl ( Ballz game ) : System
game Ballz
return System
        public LogicControl(Ballz game)
        {
            Game = game;
            state = GameState.Unknown;
            ButtonRepeat = new Timer(62.5);
            ButtonRepeat.AutoReset = true;
            repeatHandler = (s,e)=>{};
            ButtonRepeat.Elapsed += repeatHandler;
            ButtonDelay = new Timer(1000);
            ButtonDelay.AutoReset = false;
            ButtonDelay.Elapsed += (s, e) =>
            {
                ButtonRepeat.Stop();
                ButtonRepeat.Start();
            };
        }