Scene.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 #ifndef SCENE_H_
00012 #define SCENE_H_
00013 
00014 #include "InputReport.h"
00015 
00016 class MainLoop;
00017 
00019 namespace Engine
00020 {
00021 
00028 class Scene
00029 {
00030 public:
00031     Scene();
00032     virtual ~Scene();
00033     
00038     virtual void take_input(InputReport & report) = 0;
00039     
00043     virtual void update_logic(unsigned int milliseconds_elapsed) = 0;
00044     
00048     virtual void draw() = 0;
00049     
00052     virtual void do_sound() = 0;
00053     
00057     virtual void attach_main_loop(MainLoop & main_loop);
00058 protected:
00060     MainLoop * main_loop;
00061 };
00062 
00063 }
00064 
00065 #endif /*SCENE_H_*/

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:12 2010 by Doxygen version 1.4.7 for Racer version svn335.