Refactored Attract Mode into its own class.

This commit is contained in:
emb
2015-01-01 17:26:02 -06:00
parent 1a9fdabd63
commit b3ed451e4f
5 changed files with 78 additions and 27 deletions

View File

@@ -0,0 +1,22 @@
/* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
#pragma once
class Page;
class AttractMode
{
public:
AttractMode();
void SetIdleTime(float time);
void Reset();
void Update(float dt, Page &page);
private:
bool IsActive;
float ElapsedTime;
float ActiveTime;
float IdleTime;
};