mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
add class for tmp storage of game info; new dialog has only one pane for players
This commit is contained in:
parent
e45cad7e07
commit
aedabc5aa0
1 changed files with 31 additions and 2 deletions
|
@ -24,15 +24,34 @@ extern "C" {
|
|||
#include "comtypes.h"
|
||||
#include "xwstream.h"
|
||||
#include "mempool.h"
|
||||
#include "game.h"
|
||||
}
|
||||
|
||||
#include <e32base.h>
|
||||
#include <eikdialg.h>
|
||||
|
||||
class CXWGameInfoDlg : public CEikDialog
|
||||
class TGameInfoBuf
|
||||
{
|
||||
public:
|
||||
CXWGameInfoDlg( MPFORMAL_NOCOMMA );
|
||||
TGameInfoBuf::TGameInfoBuf( const CurGameInfo* aGi,
|
||||
CDesC16ArrayFlat* aDictList );
|
||||
CDesC16ArrayFlat* GetDictList() { return iDictList; }
|
||||
void CopyToL( MPFORMAL CurGameInfo* aGi );
|
||||
|
||||
TBool iIsRobot[MAX_NUM_PLAYERS];
|
||||
TBool iIsLocal[MAX_NUM_PLAYERS];
|
||||
|
||||
TBuf16<32> iPlayerNames[MAX_NUM_PLAYERS];
|
||||
|
||||
CDesC16ArrayFlat* iDictList; /* owned externally! */
|
||||
TInt iDictIndex;
|
||||
TInt iNPlayers;
|
||||
};
|
||||
|
||||
class CXWGameInfoDlg : public CEikDialog /* CEikForm instead? */
|
||||
{
|
||||
public:
|
||||
CXWGameInfoDlg( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame );
|
||||
~CXWGameInfoDlg();
|
||||
|
||||
private:
|
||||
|
@ -40,6 +59,16 @@ class CXWGameInfoDlg : public CEikDialog
|
|||
void HandleControlStateChangeL( TInt aControlId );
|
||||
TBool OkToExitL( TInt aKeyCode );
|
||||
|
||||
void LoadPlayerInfo( TInt aWhich );
|
||||
void SavePlayerInfo( TInt aWhich );
|
||||
void SetPlayerShown( TInt aPlayer );
|
||||
CDesC16ArrayFlat* MakeNumListL( TInt aFirst, TInt aLast );
|
||||
|
||||
TBool iIsNewGame;
|
||||
TGameInfoBuf* iGib;
|
||||
|
||||
TInt iCurPlayerShown;
|
||||
|
||||
MPSLOT
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue