| 253 | } |
| 254 | |
| 255 | void GameObject::update() |
| 256 | { |
| 257 | if (m_canUpdate) |
| 258 | { |
| 259 | if (m_active) |
| 260 | { |
| 261 | if (m_animator) |
| 262 | { |
| 263 | if (m_animator->getKey() != "") |
| 264 | m_animator->update(); |
| 265 | if (m_sprite) |
| 266 | { |
| 267 | m_sprite->setTexture(m_animator->getTexture()); |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | else |
| 272 | { |
| 273 | this->initialize(); |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | std::string GameObject::getType() const |
| 279 | { |
nothing calls this directly
no test coverage detected