Logo Search packages:      
Sourcecode: schafkopf version File versions  Download package

Card Class Reference

#include <card.h>

List of all members.


Detailed Description

This class represents one card.

Author:
Dominik Seichter

Definition at line 31 of file card.h.


Public Types

enum  EColor {
  NOCOLOR = -1, EICHEL = 0, GRAS = 1, HERZ = 2,
  SCHELLEN = 3
}
enum  EType {
  NOSTICH = -1, SAU = 1, ZEHN = 17, KOENIG = 5,
  OBER = 9, UNTER = 13, NEUN = 21, ACHT = 25,
  SIEBEN = 29
}

Public Member Functions

int card () const
 Card (const enum EType t, const enum EColor c)
 Card (const int id)
void cardDeckChanged ()
int color () const
int id () const
bool isEqual (Card *othercard)
bool operator< (Card *c)
const Player * owner () const
QPixmap * pixmap ()
int points () const
void setOwner (Player *owner)

Static Public Member Functions

static QPixmap * backgroundPixmap ()

Private Member Functions

void init (const enum EType t, const enum EColor c)

Private Attributes

int m_card
int m_color
Player * m_owner
QPixmap * m_pixmap
int m_points

Static Private Attributes

static QPixmap * m_background = 0

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index