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

📄 mud.h

📁 Unix下的MUD客户端程序
💻 H
字号:
#ifndef __MUD_H#define __MUD_Hclass Action;class Alias;class Macro;class MUD {public:        String name;        String program;                    // Program to run to connect        String commands;    String comment;        MUD *inherits; // search in this MUD if we can't find it here        List<Alias*> alias_list;   // Aliases unique to this MUD    List<Action*> action_list; // Actions to be performed on output form this mud    List<Macro*> macro_list;        bool loaded;              // have we connected once? then perl stuff for this is loaded        void write (FILE *fp, bool global); // Write to file. if global==true, write only aliases/actions/macros        // Recursively find/check something    Alias *findAlias(const char *name, bool recurse = true);    Macro *findMacro(int key, bool recurse = true);    void checkActionMatch(const char *s);    void checkReplacement(char *buf, int& len, char **new_out);        const char *getHostname() const;    int getPort() const;    const char *getFullName() const;    void setHost(const char*, int);            MUD(const char *_name, const char *_hostname, int _port, MUD *_inherits, const char *_commands = "");    private:    String hostname;                   // hostname/port if using network connection    int  port;    };class MUDList : public List<MUD*> {public:    MUD *find (const char *_name);};// This MUD contains the global definitionsextern MUD globalMUD;#endif

⌨️ 快捷键说明

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