Beispiel #1
0
void CAgentManager::shedule_Update		(u32 time_delta)
{
	START_PROFILE("Agent_Manager")

	ISheduled::shedule_Update	(time_delta);

	update_impl					();

	STOP_PROFILE
}
Beispiel #2
0
void CAgentManager::update				()
{
	if (Device.dwTimeGlobal <= m_last_update_time)
		return;

	if (Device.dwTimeGlobal - m_last_update_time < m_update_rate)
		return;

	m_last_update_time			= Device.dwTimeGlobal;
	update_impl					();
}
Beispiel #3
0
void Physical::update()
{
	enforce(State::DEAD != m_state);

	m_time -= m_speed;
	update_impl();

	if(State::LAND == m_state) {
		if(is_arriving()) {
			set_state(State::REST);
		}
	}
}
Beispiel #4
0
Recaptcha::Recaptcha(const std::string& public_key,
                     const std::string& private_key,
                     WContainerWidget* parent):
    AbstractCaptcha(parent),
    buttons_enabled_(true),
    public_key_(public_key),
    private_key_(private_key),
    input_(0),
    response_field_(0),
    challenge_field_(0) {
    wApp->enableUpdates();
    wApp->require("https://www.google.com/recaptcha/api/js/recaptcha_ajax.js",
                  "Recaptcha");
    http_ = new Http::Client(this);
    http_->done().connect(this, &Recaptcha::http_done);
    update_impl();
}
Beispiel #5
0
int InputBase::update(unsigned int timeout_ms, ControlData **control_data, bool already_active)
{
	if (!_initialized) {
		int ret = initialize();

		if (ret) {
			return ret;
		}

		//on startup, set the mount to a neutral position
		_control_data.type = ControlData::Type::Neutral;
		_control_data.gimbal_shutter_retract = true;
		*control_data = &_control_data;
		_initialized = true;
		return 0;
	}

	return update_impl(timeout_ms, control_data, already_active);
}