namespace Tickypip { public class GameEngine { private int mMovesCount; public delegate void MovesChangedEventHandler(GameEngine engine); public event MovesChangedEventHandler MovesChanged; public GameEngine() { MovesCount = 0; } public int MovesCount { set { if (mMovesCount == value) { return; } mMovesCount = value; if (MovesChanged != null) MovesChanged(this); } get { return mMovesCount; } } } }