| 107 | } |
| 108 | |
| 109 | bool Zone::IsChildOf(const Zone::Ptr& zone) |
| 110 | { |
| 111 | Zone::Ptr azone = this; |
| 112 | |
| 113 | while (azone) { |
| 114 | if (azone == zone) |
| 115 | return true; |
| 116 | |
| 117 | azone = azone->GetParent(); |
| 118 | } |
| 119 | |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | bool Zone::IsGlobal() const |
| 124 | { |
no test coverage detected