public void SetGridLocation( byte pos, Container parent ) { if ( parent.IsFreePosition( pos ) ) m_GridLocation = pos; else m_GridLocation = parent.GetNewPosition(); }