DisplayIntro Class Reference

The display engine for the intro graphics animation. More...

#include <display_intro.h>

Inheritance diagram for DisplayIntro:

Inheritance graph
[legend]
Collaboration diagram for DisplayIntro:

Collaboration graph
[legend]
List of all members.

Public Types

enum  AnimState {
  Idle, Putting, Turning, Waiting,
  Clearing, Waiting2
}
 Animation state of the intro display. More...

Public Slots

void convertMousePress (QPoint, int &, int &)
 Convert the position of a mouse click to a logical game position - unused.
void loop ()
 Animation loop.

Public Member Functions

 DisplayIntro (Deck *deck, QGraphicsScene *scene, ThemeManager *theme, int advancePeriod, QGraphicsView *parent)
 Constructor for the display.
virtual void changeTheme ()
 Main theme function.
void start ()
 Start the intro.
void deal (Player *, int)
void play (int, int, int)
 Play a card on the display - unsused.
void turn (int)
 Turn a card on the display - unused.
void remove (int, int, int)
 Remove the given card from the display - unused.

Detailed Description

The display engine for the intro graphics animation.

Definition at line 41 of file display_intro.h.


Member Enumeration Documentation

enum DisplayIntro::AnimState
 

Animation state of the intro display.

Enumerator:
Idle 
Putting 
Turning 
Waiting 
Clearing 
Waiting2 

Definition at line 47 of file display_intro.h.


Constructor & Destructor Documentation

DisplayIntro::DisplayIntro Deck deck,
QGraphicsScene *  scene,
ThemeManager theme,
int  advancePeriod,
QGraphicsView *  parent
 

Constructor for the display.

Parameters:
deck The card deck
scene The graphics scene to work with
theme The theme manager
advancePeriod The advance period [ms]
parent The parent object

Definition at line 40 of file display_intro.cpp.

References loop(), AbstractDisplay::scene(), and ThemeManager::updateTheme().

Here is the call graph for this function:


Member Function Documentation

void DisplayIntro::changeTheme  )  [virtual]
 

Main theme function.

Called by the theme manager. Redraw and resize display.

Implements Themable.

Definition at line 58 of file display_intro.cpp.

References ThemeManager::config(), ThemeManager::getPixmap(), AbstractDisplay::mView, AbstractDisplay::scene(), and Themable::thememanager().

Here is the call graph for this function:

void DisplayIntro::convertMousePress QPoint  ,
int &  ,
int & 
[inline, virtual, slot]
 

Convert the position of a mouse click to a logical game position - unused.

Implements AbstractDisplay.

Definition at line 91 of file display_intro.h.

void DisplayIntro::deal Player ,
int 
[inline]
 

Definition at line 73 of file display_intro.h.

void DisplayIntro::loop  )  [slot]
 

Animation loop.

Called by timer.

Definition at line 121 of file display_intro.cpp.

References ThemeManager::aspectRatio(), Clearing, ThemeManager::config(), AbstractDisplay::mCards, Putting, CardSprite::setBackside(), CardSprite::setPosition(), CardSprite::setTurning(), Themable::thememanager(), Turning, WAIT_CNT, and Waiting.

Referenced by DisplayIntro().

void DisplayIntro::play int  ,
int  ,
int 
[inline, virtual]
 

Play a card on the display - unsused.

Implements AbstractDisplay.

Definition at line 77 of file display_intro.h.

void DisplayIntro::remove int  ,
int  ,
int 
[inline, virtual]
 

Remove the given card from the display - unused.

Implements AbstractDisplay.

Definition at line 85 of file display_intro.h.

void DisplayIntro::start  )  [virtual]
 

Start the intro.

Implements AbstractDisplay.

Definition at line 72 of file display_intro.cpp.

References AbstractDisplay::mCards, AbstractDisplay::mSprites, AbstractDisplay::mTheme, Putting, and AbstractDisplay::scene().

Here is the call graph for this function:

void DisplayIntro::turn int   )  [inline, virtual]
 

Turn a card on the display - unused.

Implements AbstractDisplay.

Definition at line 81 of file display_intro.h.


The documentation for this class was generated from the following files:
Generated on Tue May 1 09:34:40 2007 for LSkat by  doxygen 1.4.6