This commit is contained in:
Glenn Maynard
2006-08-31 23:06:22 +00:00
parent 70f3c3e6a1
commit 1a42ad7d4e
2 changed files with 3 additions and 13 deletions
-10
View File
@@ -1198,16 +1198,6 @@ class OptionRowHandlerNull: public OptionRowHandler
{
public:
OptionRowHandlerNull() { Init(); }
virtual void LoadInternal( const Commands &cmds )
{
}
virtual void ImportOption( const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const
{
}
virtual int ExportOption( const vector<PlayerNumber> &vpns, const vector<bool> vbSelected[NUM_PLAYERS] ) const
{
return 0;
}
};
+3 -3
View File
@@ -32,7 +32,7 @@ public:
m_cmds = cmds;
this->LoadInternal( cmds );
}
virtual void LoadInternal( const Commands &cmds ) = 0;
virtual void LoadInternal( const Commands &cmds ) { }
/*
* We may re-use OptionRowHandlers. This is called before each
@@ -49,9 +49,9 @@ public:
enum ReloadChanged { RELOAD_CHANGED_NONE, RELOAD_CHANGED_ENABLED, RELOAD_CHANGED_ALL };
virtual ReloadChanged Reload() { return RELOAD_CHANGED_NONE; }
virtual void ImportOption( const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const = 0;
virtual void ImportOption( const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const { }
/* Returns an OPT mask. */
virtual int ExportOption( const vector<PlayerNumber> &vpns, const vector<bool> vbSelected[NUM_PLAYERS] ) const = 0;
virtual int ExportOption( const vector<PlayerNumber> &vpns, const vector<bool> vbSelected[NUM_PLAYERS] ) const { return 0; }
virtual void GetIconTextAndGameCommand( int iFirstSelection, RString &sIconTextOut, GameCommand &gcOut ) const;
virtual RString GetScreen( int iChoice ) const { return RString(); }
};