| 184 | } |
| 185 | |
| 186 | Follow* Follow::createWithOffset(Node* followedNode, float xOffset, float yOffset, const Rect& rect /*= Rect::ZERO*/) |
| 187 | { |
| 188 | |
| 189 | Follow* follow = new Follow(); |
| 190 | |
| 191 | bool valid = follow->initWithTargetAndOffset(followedNode, xOffset, yOffset, rect); |
| 192 | |
| 193 | if (valid) |
| 194 | { |
| 195 | follow->autorelease(); |
| 196 | return follow; |
| 197 | } |
| 198 | |
| 199 | delete follow; |
| 200 | return nullptr; |
| 201 | } |
| 202 | Follow* Follow::clone() const |
| 203 | { |
| 204 | // no copy constructor |
nothing calls this directly
no test coverage detected