Exemplo n.º 1
0
        public static bool Equal( Panel p1, Panel p2 )
        {
            for ( int i = 0; i < 4; i++ )
            {
                if ( !Row.Equal( p1.Rows[i], p2.Rows[i] ) )
                    return false;
            }

            return true;
        }
Exemplo n.º 2
0
 public GameBoard( Panel startPanel, Panel targetPanel, int maxMovements )
 {
     m_StartPanel = startPanel;
     m_TargetPanel = targetPanel;
     m_MaxMovements = maxMovements;
 }
Exemplo n.º 3
0
 public void Reset()
 {
     m_GamePanel = m_StartPanel.Clone();
     m_CurrentMovements = 0;
 }
Exemplo n.º 4
0
 private void DrawPanel( Panel panel, int xBase, int yBase )
 {
     for ( int i = 0; i < 4; i++ )
         DrawRow( panel.Rows[i], xBase, yBase + ( i * 33 ) );
 }