⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tintin.h

📁 Windows上的MUD客户端程序
💻 H
📖 第 1 页 / 共 2 页
字号:
						{
							return GetSettings()->GetListVars();
						}
		inline TinTinList* GetListHighlights() const
						{
							return GetSettings()->GetListHighlights();
						}
		inline TinTinList* GetListSubs() const
						{
							return GetSettings()->GetListSubs();
						}
		inline TinTinList* GetListAntiSubs() const
						{
							return GetSettings()->GetListAntiSubs();
						}
		inline TinTinList* GetListPath() const { return m_pListPath; }
		inline TinTinList* GetListPathDirs() const
						{
							return GetSettings()->GetListPathDirs();
						}
		inline int GetSecondsToTick() const { return m_iSecsToTick; }
		inline const string& GetTickKey() const
						{
							return GetSettings()->GetTickKey();
						}
		inline int GetTickSize() const
						{
							return GetSettings()->GetTickSize();
						}
		inline time_t GetTimeStart() const { return m_timeStart; }
		inline char GetTinTinChar() const
						{
							return GetSettings()->GetTinTinChar();
						}
		inline char GetVerbatimChar() const { return m_cVerbatim; }

		inline bool IsDisplayingMsg( int iClass ) const
						{
							return GetSettings()->IsDisplayingMsg( iClass );
						}
		inline bool IsEcho() const { return GetSettings()->IsEcho(); }
		inline bool IsIgnore() const { return GetSettings()->IsIgnore(); }
		inline bool IsMessages() const { return m_boolMessages; }
		inline bool IsOnline() const { return m_boolOnline; }
		inline bool IsSpeedwalk() const
						{
							return GetSettings()->IsSpeedwalk();
						}
		inline bool IsTicking() const { return GetSettings()->IsTicking(); }
		inline bool IsUsingPresubs() const
						{
							return GetSettings()->IsUsingPresubs();
						}
		inline bool IsUsingSubs() const
						{
							return GetSettings()->IsUsingSubs();
						}
		inline bool IsVerbatim() const { return GetSettings()->IsVerbatim(); }

		inline void SetDisplayingMsg( int iClass, bool boolDisplay )
						{
							GetSettings()->SetDisplayingMsg( iClass,
																boolDisplay );
						}
		inline void SetEcho( bool boolEcho )
						{
							GetSettings()->SetEcho( boolEcho );
						}
		inline void SetIgnore( bool boolIgnore )
						{
							GetSettings()->SetIgnore( boolIgnore );
						}
		inline void SetLocalSettings( bool boolLocal )
						{
							m_pActiveSettings = boolLocal ? m_pSettings :
															m_pGlobalSettings;
						}
		inline void SetMessages( bool boolOn )
						{
							m_boolMessages = boolOn;
						}
		inline void SetPresub( bool boolPresub )
						{
							GetSettings()->SetPresub( boolPresub );
						}
		inline void SetSecondsToTick( int iSecondsToTick )
						{
							m_iSecsToTick = iSecondsToTick;
						}
		inline void SetSpeedwalk( bool boolSpeedwalk )
						{
							GetSettings()->SetSpeedwalk( boolSpeedwalk );
						}
		inline void SetTicking( bool boolTicking )
						{
							GetSettings()->SetTicking( boolTicking );
						}
		inline void SetTickKey( const string& strKey )
						{
							GetSettings()->SetTickKey( strKey );
						}
		inline void SetTickSize( int iSize )
						{
							GetSettings()->SetTickSize( iSize );
						}
		inline void SetTimeStart( time_t start ) { m_timeStart = start; }
		inline void SetTinTinChar( char cNewTinTin )
						{
							GetSettings()->SetTinTinChar( cNewTinTin );
						}
		inline void SetUsingSubs( bool boolUsingSubs )
						{
							GetSettings()->SetUsingSubs( boolUsingSubs );
						}
		inline void SetVerbatim( bool boolVerbatim )
						{
							GetSettings()->SetVerbatim( boolVerbatim );
						}
											// In TinTinMain.cpp
		void ReadGlobalFile();
											// In TinTinParse.cpp

		void Send( const string& strCmd );
		void Send( const string& strCmd, const string& strArgs );
		void ParseTinTinCommand( const string& strCommand, string& strArgs );

		bool IsSpeedwalkDirective( const char* pstrCmd );
		void DoSpeedwalk( const char* pstrCmd );

		const char* GetArgAll( const char* pstrText, string& strArg );
		const char* GetArgInBraces( const char* pstrText, string& strArg,
									bool boolIncludeSpaces = true );
		const char* GetArgStopAtSpaces( const char* pstrText, string& strArg );
		const char* GetArgWithSpaces( const char* pstrText, string& strArg );
		const char* SpaceOut( const char* pstrText );

											// In TinTinAction.cpp

		void PrepareActionAlias( const string& strText, string& strResult );
		void DoAction( const string& strArgs );
		void DoUnaction( const string& strArgs );
	
		bool CheckOneAction( const string& strLine, const string& strAction );
		bool CompareAction( const string& strLine, const string& strAction,
							VarLenType& iVarLen, VarType& strVar );

											// In TinTinAlias.cpp
		void DoAlias( const string& strArgs );
		void DoUnalias( const string& strArgs );

											// In TinTinFiles.cpp

		void DoRead( const string& strFilename, bool boolOnline );
		void DoWrite( const string& strFilename );

		void CompleteFilePath( string& strFilePath );
		void FormatCommand( const string& strCommand, const string& strLeft,
							const string& strRight, const string& strPriority,
							string& strResult );

											// In TinTinIf.cpp
		void DoIf( const string& strArgs );
		void DoMath( const string& strArgs );

		void EvalExpression( const char* pstrArgs, string& strResult );
		bool CompileExpression( const char* pstrArg );
		void ResetExpression();
		bool DoOneInside( int iBegin, int iEnd );
		bool CompareValues( const MathOps& left, const MathOps& right,
							TTOperator op );
		void MakeString( const MathOps& val, string& strVal );

											// In TinTinMisc.cpp
		void DoAlert();
		void DoBell();
		void DoChar( const string& strArg );
		void DoCR();
		void DoEnd( const string& strCommand );
		void DoHelp( const string& strArgs );
		void DoInfo();
		void DoKillAll( bool boolQuiet );
		void DoLog( const string& strArgs );
		void DoLoop( const string& strArgs );
		void DoMbox( const string& strArgs );
		void DoMessage( const string& strArgs );
		void DoPlaySound( const string& strArgs );
		void DoRandom( const string& strArgs );
		void DoShowMe( const string& strArgs );
		void DoSplit( const string& strArgs );
		void DoVersion();
		void DoWizList();
		void DoZap();
		void ToggleEcho();
		void ToggleIgnore();
		void ToggleSpeedwalk();
		void ToggleSub();
		void ToggleVerbatim( const string& strArg );

											// In TinTinPath.cpp
		void DoMap( const string& strArgs );
		void DoMark();
		void DoPath();
		void DoPathdir( const string& strArgs );
		void DoReturn();
		void DoSavepath( const string& strArgs );
		void DoUnpath();
											// In TinTinSession.cpp

		void DoAll( const string& strArgs );
		void DoName( const string& strArgs );
		void DoSession( const string& strArgs );
		void CreateSession( const string& strLabel,
							const string& strConnInfo );

											// In TinTinSubs.cpp

		void DoSubstitute( const string& strArgs );
		void DoUnsubstitute( const string& strArgs, bool boolUngag );

											// In TinTinTicks.cpp
		void DoTick();
		void DoTickKey( const string& strArgs );
		void DoTickOff();
		void DoTickOn();
		void DoTickSet();
		void DoTickSize( const string& strArgs );

											// In TinTinUtils.cpp

		TTCommand ParseTinTinCmd( const char* strCommand );
		bool IsAbrev( const char* pstr1, const char* pstr2 );

											// In TinTinVars.cpp

		void DoChangeCase( const string& strArgs, bool boolToUpper );
		void DoVariable( const string& strArgs );
		void DoUnvariable( const string& strArgs );

		void SubstituteVars( const char* pstrArg, string& strOut,
								bool boolQuoted = false );
		void SubstituteMyVars( const char* pstrArg, string& strOut,
								bool boolQuoted = false );
		
		bool IsVarNameValid( const string& strName );

	protected:
		static const char		m_cVerbatim;
		static const char*		m_pstrCommands[];
		static TinTinSettings*	m_pGlobalSettings;
		static int				m_iObjectCount;
		static string			m_strFalse;

		ChWorldMainInfo*		m_pMainInfo;

		TinTinSettings*			m_pSettings;
		TinTinSettings*			m_pActiveSettings;

		int						m_iRecurseLevel;

		bool					m_boolUseGlobal;
		bool					m_boolMessages;	// Overrides the following array

		bool					m_boolOnline;

		bool					m_boolTrackPaths;
		int						m_iPathLen;
		TinTinList*				m_pListPath;

		time_t					m_timeStart;
		int						m_iSecsToTick;

		VarType					m_strVars;	// %0 - %9 variables

		int						m_iAliasCounter;
		int						m_iActionCounter;
		int						m_iSubCounter;
		int						m_iAntiSubCounter;
		int						m_iVarCounter;
		int						m_iHighlightCounter;
		int						m_iPathdirCounter;
};

#endif	// !defined( TINTIN_H )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -