//生成地图
srand(GetTickCount());
m_arr.clear();
int step = Space1Element;
for(int r = 0; r < m_row; ++r) {
// 一行地图空间
vector<CGameMapElement> vRow;
// 列数据
for(int c = 0; c < m_col; ++c) {
vRow.push_back(CGameMapElement(
static_cast<float>(m_rectMap.X + c * step)
, static_cast<float>(m_rectMap.Y + r * step)
, c == 0 ? true : (1 == rand() % 5)
, r == 0 ? true : (1 == rand() % 5)
, c == m_col - 1 ? true : (1 == rand() % 5)
, r == m_row - 1 ? true : (1 == rand() % 5)
, static_cast<float>(m_wallWidth), static_cast<float>(m_spaceLen)
));
}
// 追加一行
m_arr.push_back(vRow);
}