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

📄 avatar.h

📁 chord 源码 http://pdos.csail.mit.edu/chord/
💻 H
字号:
#ifndef _AVATAR_H_#define _AVATAR_H_#include "dhash_common.h"#include "str.h"#include "chord.h"#include "room.h"#include "thing.h"#include "mud_obj.h"typedef callback<void, int>::ref av_cb_t;class avatar: public mud_obj {  ref<dhashclient> dhash;  str passwd;  char *buf;  vec<ptr<thing> > inventory;  ptr<room> location;    uint inv_size ();  void look_cb (dhash_stat, ptr<dhash_block>, vec<chordID>);  void get (str);  void done_move_lookup (ref<room>, av_cb_t, dhash_stat, ptr<dhash_block>, 			 vec<chordID>);  void done_remove (ref<room>, av_cb_t, dhash_stat, ptr<insert_info>);  void done_enter_lookup (av_cb_t, dhash_stat stat, ptr<dhash_block> blk, 			  vec<chordID> path);  void done_enter (av_cb_t, dhash_stat, ptr<insert_info>);  void done_enter_cb (av_cb_t, dhash_stat, ptr<insert_info>); public:  avatar (str, str, ref<dhashclient>, ptr<room> l=NULL);  avatar (char *, uint, ref<dhashclient>);  ~avatar () { if (buf) free (buf); }  char *bytes ();  uint size ();  str pw () { return passwd; };  ref<room> loc () { return location; };  void enter (ref<room>);   void play ();  //void look ();  //void touch (ref<thing>);  void move (str, av_cb_t cb);  str read_input ();  str to_str ();};#endif

⌨️ 快捷键说明

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