added GPL copyrights
[physics.git] / src / game.cpp
index 1aabda2..95cd04d 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ *  Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com.
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #include "game.h"
 #include "debug.h"
 
@@ -12,6 +29,7 @@ using std::vector;
 #include "GameStates/Paused.h"
 #include "GameStates/CreatingPolygon.h"
 
+
 /// ***** Private Variables *****
 
 // The stack of active game states
@@ -25,7 +43,8 @@ CreatingPolygon* creating_Polygon;
 
 
 /// ***** Public Methods *****
-void gameInit()
+
+void game::init()
 {
     running = new Running();
     paused = new Paused();
@@ -43,7 +62,7 @@ void gameInit()
 #endif
 }
 
-void gameClean()
+void game::clean()
 {
     effect::clean();
 
@@ -54,7 +73,7 @@ void gameClean()
     delete running;
 }
 
-void gameInput()
+void game::input()
 {
     int last = active_States.size() -1;
     for( int i = 0;
@@ -68,7 +87,7 @@ void gameInput()
     }
 }
 
-void gameUpdate(float time_step)
+void game::update(float time_step)
 {
     int last = active_States.size() -1;
     for( int i = 0;
@@ -82,7 +101,7 @@ void gameUpdate(float time_step)
     }
 }
 
-void gameDraw()
+void game::draw()
 {
     int last = active_States.size() -1;
     for( int i = 0;