CScabbyQueenDealer Class Reference

Inheritance diagram for CScabbyQueenDealer:

CCardGameDealer CCardGameBase

List of all members.

Public Member Functions

 ~CScabbyQueenDealer ()
virtual void SendComplete (TInt aError)
virtual void RecvComplete (TInetAddr aRecvAddr, TInt aError)
virtual void TimerComplete ()
void StartTheGame ()
void DealDeckL ()
void ShowDeckL ()
void SendPlayerNumbers ()

Static Public Member Functions

static
CScabbyQueenDealer
NewL (CConsoleBase &aConsole, RArray< TInetAddr > &aRemoteNames, RSocket &aSocket)

Public Attributes

TBool iGameOver
TPckgBuf< TGameStatus > iGameStatus
TPckgBuf< TInt > iPlayerNum
TInt iCount
TInt iPlayerToken
TInt iSender
TInt iPlayerCount
TInt iResendCount
TBuf8< 20 > iPlayerUpdate
TBuf8< 20 > iOldPlayerUpdate
TPckgBuf< TInt > iUpdateSize
TPckgBuf< TInt > iSenderHandSize
TPckgBuf< TInt > iCardNum
TPckgBuf< TInt > iAck
TPckgBuf< TInt > iGameOverBuffer
RArray< TInt > iLostPlayers

Protected Member Functions

 CScabbyQueenDealer (CConsoleBase &aConsole, RArray< TInetAddr > &aRemoteNames, RSocket &aSocket)
void ConstructL ()


Detailed Description

The CScabbyQueenDealer is the concrete implementation of the came game architecture, it derives from CCardGameDealer which inturn derives from CCardGameBase. A dealer is the PAN-Gn, therefore when created the RSocket and array of device addresses are passed.

Definition at line 34 of file dealer.h.


Constructor & Destructor Documentation

CScabbyQueenDealer::~CScabbyQueenDealer (  ) 

Destructor.

Definition at line 56 of file dealer.cpp.

CScabbyQueenDealer::CScabbyQueenDealer ( CConsoleBase &  aConsole,
RArray< TInetAddr > &  aRemoteNames,
RSocket &  aSocket 
) [protected]

Primary constructor.

Definition at line 40 of file dealer.cpp.


Member Function Documentation

CScabbyQueenDealer * CScabbyQueenDealer::NewL ( CConsoleBase &  aConsole,
RArray< TInetAddr > &  aRemoteNames,
RSocket &  aSocket 
) [static]

CScabbyQueenDealer NewL.

Definition at line 28 of file dealer.cpp.

void CScabbyQueenDealer::SendComplete ( TInt  aError  )  [virtual]

THis function will be called each time a send has completed

Implements CCardGameDealer.

Definition at line 108 of file dealer.cpp.

void CScabbyQueenDealer::RecvComplete ( TInetAddr  aRecvAddr,
TInt  aError 
) [virtual]

Implementation of base class virtual function

Implements CCardGameDealer.

Definition at line 168 of file dealer.cpp.

void CScabbyQueenDealer::DealDeckL (  ) 

Function that will deal the deck out to the players.

Definition at line 97 of file dealer.cpp.

void CScabbyQueenDealer::ShowDeckL (  ) 

Function that displays the deck to the dealer.

Definition at line 234 of file dealer.cpp.

void CScabbyQueenDealer::SendPlayerNumbers (  ) 

Send out the player numbers

Definition at line 82 of file dealer.cpp.

void CScabbyQueenDealer::ConstructL (  )  [protected]

Secondary constructor.

Definition at line 66 of file dealer.cpp.


Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by  doxygen 1.5.3