| 39 | } |
| 40 | |
| 41 | bool CLayerFront::IsEmpty() const |
| 42 | { |
| 43 | for(int y = 0; y < m_Height; y++) |
| 44 | { |
| 45 | for(int x = 0; x < m_Width; x++) |
| 46 | { |
| 47 | const int Index = GetTile(x, y).m_Index; |
| 48 | if(Index == 0) |
| 49 | { |
| 50 | continue; |
| 51 | } |
| 52 | if(Editor()->IsAllowPlaceUnusedTiles() || IsValidFrontTile(Index)) |
| 53 | { |
| 54 | return false; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | return true; |
| 59 | } |
| 60 | |
| 61 | const char *CLayerFront::TypeName() const |
| 62 | { |
nothing calls this directly
no test coverage detected