/**************************************************************
 * FFTacticsMUD : desc.h                                      *
 **************************************************************
 * (c) 2002 Damien Dailidenas (Trenton). All rights reserved. *
 **************************************************************/

class DESC {
public:
  DESC *next, *snoop_by;
  CH *ch;
  bool fcommand;
  string inbuf, incomm, inlast, host, outbuf;
  short desc, connected, repeat, timer;   
  
  DESC();
  ~DESC();
  bool load_ch(const string name);
  bool read();
  void close_socket();
  bool process_output(const bool fPrompt);
  void read_buffer();
  void printf(const string str);
  void nanny(string argument);
  bool playing(const string name);
  bool multiplaying(const string name);
  bool reconnect(const string name, bool fConn);
  string conn_status();
  bool write(const string str);
};

#define CON_PLAYING                      0
#define CON_GET_NAME                     1
#define CON_GET_OLD_PASSWORD             2
#define CON_CONFIRM_NEW_NAME             3
#define CON_GET_NEW_PASSWORD             4
#define CON_CONFIRM_NEW_PASSWORD         5
#define CON_BREAK_CONNECT                6
#define CON_FINISH                       7
#define CON_COPYOVER_RECOVER             8
#define CON_GET_SEX                      9
#define CON_GET_EMAIL                   10
#define CON_GET_PK			11
#define CON_GET_BIRTHMONTH		12
#define CON_GET_BIRTHDAY		13

extern  DESC *desc_list;