5 private ref array<int> m_iRow =
new array<int>();
6 private string m_sDebugOutput =
"";
12 bool CheckFreePlaceInRow(
int sizeCols,
int col )
14 if( ( col + sizeCols ) > m_iRow.Count() )
17 for(
int i = col; i < ( col + sizeCols ); i++ )
19 if( m_iRow.Get( i ) != 0 )
29 bool ReservePlaceInRow(
int sizeCols,
int col )
31 if( ( col + sizeCols ) > m_iRow.Count() )
34 for(
int i = col; i < ( col + sizeCols ); i++ )
42 bool ClearPlaceInRow(
int sizeCols,
int col )
44 if( ( col + sizeCols ) <= m_iRow.Count() )
47 for(
int i = col; i < ( col + sizeCols ); i++ )
56 m_sDebugOutput =
"| ";
57 for(
int i = 0; i < m_iRow.Count(); i++ )
59 m_sDebugOutput += (m_iRow.Get( i ) ).ToString();
60 m_sDebugOutput +=
" | ";
62 Print( m_sDebugOutput );
66 int GetElement(
int index )
68 int i = m_iRow.Get(
index );
73 void InsertElement(
int element )
75 m_iRow.Insert( element );
79 void SetElement(
int index,
int element )
81 m_iRow.Set(
index, element );
99 for(
int i = 0; i < size; i++)
100 m_iRow.Insert( defaulElementValue );