// (c) 2005 kp@kp73.com
using System;
using KP.Tetris;
namespace KP.Tetris{
/// <summary>
/// Tetris game <see cref="IGameViewer">viewer</see> for Form based tetris user interface.
/// </summary>
public class WindowsView : IGameViewer
{
/// <summary>
/// Instance of UpdateView delegate used to call re-draw methods.
/// </summary>
public UpdateView OnUpdate;
#region ITetrisGameView Members
/// <summary>
/// Refreshes the game view, called when the game state has
/// changed. Implementation for IGameViewer interface.
/// </summary>
/// <param name="v"></param>
public void Refresh(GameView v)
{
OnUpdate(v);
}
#endregion
}
}
|