| 200 | } |
| 201 | |
| 202 | void NodeTest5::addAndRemove(float dt) |
| 203 | { |
| 204 | auto sp1 = getChildByTag(kTagSprite1); |
| 205 | auto sp2 = getChildByTag(kTagSprite2); |
| 206 | |
| 207 | sp1->retain(); |
| 208 | sp2->retain(); |
| 209 | |
| 210 | removeChild(sp1, false); |
| 211 | removeChild(sp2, true); |
| 212 | |
| 213 | addChild(sp1, 0, kTagSprite1); |
| 214 | addChild(sp2, 0, kTagSprite2); |
| 215 | |
| 216 | sp1->release(); |
| 217 | sp2->release(); |
| 218 | } |
| 219 | |
| 220 | std::string NodeTest5::subtitle() const |
| 221 | { |
nothing calls this directly
no test coverage detected