27 if (element == controller)
36 controller->SetObject(
this);
39 mControllers.push_back(controller);
47 if (element == controller)
50 controller->SetObject(
nullptr);
53 mControllers.remove(controller);
64 element->SetObject(
nullptr);
71 bool someoneUpdated =
false;
74 if (element->Update(applicationTime))
76 someoneUpdated =
true;
79 return someoneUpdated;
void AttachController(std::shared_ptr< Controller > const &controller)
bool UpdateControllers(double applicationTime)
void DetachController(std::shared_ptr< Controller > const &controller)
void DetachAllControllers()
virtual ~ControlledObject()