MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / update

Method update

src/Core/Script/GameObject.cpp:255–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

initializeMethod · 0.95
getKeyMethod · 0.45
setTextureMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected