summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-10-25 20:27:40 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-10-25 20:27:40 +0200
commit3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3 (patch)
tree48b9fe73807fd2f7dc4fb66c8f8e4f3d3f833ba6 /src/app/app.h
parent688315ab76145a32d0aebf826fbbb7fc9ce24443 (diff)
downloadcolobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.tar.gz
colobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.tar.bz2
colobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.zip
Main loop enhancement
Frame updates were posted one frame behind in event queue
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/app.h b/src/app/app.h
index 32f03f8..66b5848 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -199,9 +199,6 @@ public:
//! Returns whether simulation is suspended
bool GetSimulationSuspended();
- //! Updates the simulation state
- void StepSimulation();
-
//@{
//! Management of simulation speed
void SetSimulationSpeed(float speed);
@@ -312,6 +309,8 @@ protected:
Event ProcessSystemEvent();
//! If applicable, creates a virtual event to match the changed state as of new event
Event CreateVirtualEvent(const Event& sourceEvent);
+ //! Prepares a simulation update event
+ Event CreateUpdateEvent();
//! Handles some incoming events
bool ProcessEvent(const Event& event);
//! Renders the image in window