| 1 | /*************************************************************************** |
| 2 | pipenightdreams.h - description |
| 3 | ------------------- |
| 4 | begin : Thu Aug 17 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef PIPE_NIGHT_DREAMS_H |
| 19 | #define PIPE_NIGHT_DREAMS_H |
| 20 | |
| 21 | #include "videomanager.h" |
| 22 | #include "imagemanager.h" |
| 23 | #include "eventmanager.h" |
| 24 | #include "object.h" |
| 25 | #include "board.h" |
| 26 | #include "player.h" |
| 27 | #include "systemstream.h" |
| 28 | |
| 29 | #define FPS 20 |
| 30 | |
| 31 | class PipeNightDreams: public Object{ |
| 32 | |
| 33 | public: |
| 34 | |
| 35 | PipeNightDreams(bool fullscreen); |
| 36 | ~PipeNightDreams(); |
| 37 | |
| 38 | /** The method to assign the data dir */ |
| 39 | void setDataDir(Str * dir_name); |
| 40 | |
| 41 | void setStartingLevel(int level); |
| 42 | |
| 43 | |
| 44 | /** The method that run the game. */ |
| 45 | void run(); |
| 46 | |
| 47 | protected: |
| 48 | |
| 49 | /** Introduction display.*/ |
| 50 | void showIntro(); |
| 51 | /** Options Menu display.*/ |
| 52 | void showOptions(); |
| 53 | /** Level execution.*/ |
| 54 | void play(); |
| 55 | /** Main Menu.*/ |
| 56 | void showMainMenu(); |
| 57 | /** Game Over screen.*/ |
| 58 | void showGameOver(); |
| 59 | /** Hall of Fame screen.*/ |
| 60 | void showHallOfFame(); |
| 61 | /** Next Level Screen*/ |
| 62 | void showNextLevel(); |
| 63 | /**Try Again Screen*/ |
| 64 | void showTryAgain(); |
| 65 | /** Final screen*/ |
| 66 | void showFinal(); |
| 67 | /** Load main graphics*/ |
| 68 | void load(); |
| 69 | |
| 70 | VideoManager * video_manager; |
| 71 | ImageManager * image_manager; |
| 72 | EventManager * event_manager; |
| 73 | |
| 74 | private: |
| 75 | |
| 76 | bool game_over; |
| 77 | bool quit; |
| 78 | SystemStream * sys; |
| 79 | Str * data_dir; |
| 80 | Str * images_dir; |
| 81 | Board * board; |
| 82 | Player * player; |
| 83 | Image * nextlevel; |
| 84 | Image * tryagain; |
| 85 | Image * pressenter; |
| 86 | int starting_level; |
| 87 | }; |
| 88 | |
| 89 | #endif |
| 90 |