diff options
author | Thomas Günther <tom@toms-cafe.de> | 2007-09-25 00:29:48 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2007-09-25 00:29:48 +0200 |
commit | db35a6286cbbebdb39396466628f2292cb63b975 (patch) | |
tree | 8dc5789274dcc1e627e83a24ddfbb466291e68d1 /game.h | |
parent | 473eff38fb6c5ef87b218b3a66c1789e0be784e0 (diff) | |
download | vdr-plugin-spider-db35a6286cbbebdb39396466628f2292cb63b975.tar.gz vdr-plugin-spider-db35a6286cbbebdb39396466628f2292cb63b975.tar.bz2 |
Resume the last game.
Customizable width and height.
OSD error compensation (shrink width/height or reduce colors).
Added setup option to hide the top row.
Set normal variation (two decks and 10 piles) as standard, together with "shrink height" and "hide top row".
Added user-defined variations.
Improved key handling.
Diffstat (limited to 'game.h')
-rw-r--r-- | game.h | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -17,7 +17,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * $Id: game.h 95 2007-09-21 23:01:10Z tom $ + * $Id: game.h 97 2007-09-24 22:29:48Z tom $ */ #ifndef VDR_SPIDER_GAME_H @@ -43,21 +43,31 @@ namespace SpiderPlugin { const SetupData& setup; const char* confdir; - int width, height; - int xPos, yPos; - int xDist, yDist; cOsd* osd; Bitmap* info; const char* infoText; - Spider::Deck* deck; - Spider::Tableau* tableau; + Spider::Deck*& deck; + Spider::Tableau*& tableau; unsigned int currentPile; enum { cursorOnPile, selectedPile, cursorOnPack, gameOver } status; + struct Colors + { + tColor background; + tColor osd_frame; + tColor card_frame; + tColor card_frame_bg; + tColor inactive_cursor; + tColor active_cursor; + }; + Colors colors; + static const Colors full_colors; + static const Colors reduced_colors; public: /** Constructor */ - Game(const SetupData& setup, const char* confdir); + Game(const SetupData& setup, const char* confdir, + Spider::Deck*& deck, Spider::Tableau*& tableau); /** Destructor */ virtual ~Game(); |