コード例 #1
0
ファイル: ingameoptions.cpp プロジェクト: LucaAnt/OpenApoc
void InGameOptions::Update(StageCmd *const cmd)
{
	menuform->Update();
	*cmd = this->stageCmd;
	// Reset the command to default
	this->stageCmd = StageCmd();
}
コード例 #2
0
ファイル: ufopaedia.cpp プロジェクト: agry/x-com
void Ufopaedia::Update(StageCmd * const cmd)
{
	menuform->Update();
	*cmd = this->stageCmd;
	//Reset the command to default
	this->stageCmd = StageCmd();
}
コード例 #3
0
void BuildingScreen::Update(StageCmd *const cmd)
{
	menuform->Update();
	*cmd = this->stageCmd;
	// Reset the command to default
	this->stageCmd = StageCmd();
}
コード例 #4
0
void InfiltrationScreen::Update(StageCmd *const cmd)
{
	menuform->Update();
	*cmd = this->stageCmd;
	// Reset the command to default
	this->stageCmd = StageCmd();
}
コード例 #5
0
ファイル: cityview.cpp プロジェクト: aglenday/OpenApoc
void CityView::Update(StageCmd *const cmd)
{
	unsigned int ticks = 0;
	switch (this->updateSpeed)
	{
		case UpdateSpeed::Pause:
			ticks = 0;
			break;
		case UpdateSpeed::Speed1:
			ticks = 1;
			break;
		case UpdateSpeed::Speed2:
			ticks = 2;
			break;
		default:
			LogWarning("FIXME: Sort out higher speed to not just hammer update (GOD-SLOW) - "
			           "demoting to speed3");
			this->updateSpeed = UpdateSpeed::Speed3;
		case UpdateSpeed::Speed3:
			ticks = 5;
			break;
	}
	*cmd = stageCmd;
	stageCmd = StageCmd();

	fw.state->city->update(ticks);

	TileView::update(ticks);
	activeTab->Update();
}
コード例 #6
0
void BaseSelectScreen::Update(StageCmd *const cmd)
{
	menuform->Update();
	*cmd = this->stageCmd;
	// Reset the command to default
	this->stageCmd = StageCmd();
	counter = (counter + 1) % COUNTER_MAX;
}
コード例 #7
0
ファイル: tileview.cpp プロジェクト: Rexides/OpenApoc
void TileView::Update(StageCmd * const cmd)
{
	*cmd = stageCmd;
	stageCmd = StageCmd();

	offsetX += cameraScrollX;
	offsetY += cameraScrollY;
}
コード例 #8
0
ファイル: vequipscreen.cpp プロジェクト: LucaAnt/OpenApoc
void VEquipScreen::Update(StageCmd *const cmd)
{
	this->glowCounter += GLOW_COUNTER_INCREMENT;
	// Loop the increment over the period, otherwise we could start getting lower precision etc. if
	// people leave the screen going for a few centuries
	while (this->glowCounter > 2.0f * M_PI)
	{
		this->glowCounter -= 2.0f * M_PI;
	}
	form->Update();
	*cmd = stageCmd;
	stageCmd = StageCmd();
}
コード例 #9
0
ファイル: basescreen.cpp プロジェクト: ShadowDancer/OpenApoc
void BaseScreen::update(StageCmd *const cmd)
{
	form->update();
	*cmd = stageCmd;
	stageCmd = StageCmd();
}
コード例 #10
0
ファイル: mainmenu.cpp プロジェクト: 5thAvenue/OpenApoc
void MainMenu::Update(StageCmd * const cmd)
{
	mainmenuform->Update();
	*cmd = stageCmd;
	stageCmd = StageCmd();
}
コード例 #11
0
ファイル: messagebox.cpp プロジェクト: ShadowDancer/OpenApoc
void MessageBox::update(StageCmd *const cmd)
{
	form->update();
	*cmd = this->stageCmd;
	this->stageCmd = StageCmd();
}
コード例 #12
0
ファイル: difficultymenu.cpp プロジェクト: acejoh/OpenApoc
void DifficultyMenu::Update(StageCmd *const cmd)
{
	difficultymenuform->Update();
	*cmd = stageCmd;
	stageCmd = StageCmd();
}