50 lines
1.2 KiB
C
Raw Normal View History

2013-02-25 21:52:03 +01:00
/*---------------------------------------------------------------------------------
KubKraft
Copyright (C) 2012 Quent42340 <quent42340@gmail.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/>.
---------------------------------------------------------------------------------*/
2013-02-11 21:58:34 +01:00
#ifndef SCENE_H
#define SCENE_H
2013-03-02 04:54:21 +01:00
class Game {
2013-02-11 21:58:34 +01:00
public:
2013-03-02 04:54:21 +01:00
Game();
~Game();
2013-02-11 21:58:34 +01:00
void exec();
void manageEvents();
void animate();
void draw();
void loadTextures();
void lockMouse();
void unlockMouse();
2013-02-17 18:03:15 +01:00
static Player *player;
2013-03-02 06:06:07 +01:00
static Map *map;
2013-02-17 18:03:15 +01:00
2013-02-11 21:58:34 +01:00
private:
bool m_cont;
2013-03-10 16:15:24 +01:00
bool m_paused;
2013-02-26 03:43:12 +01:00
2013-02-11 21:58:34 +01:00
Textures m_textures;
};
#endif // SCENE_H