/*********************************************************** * WindowMud - Window Mud Server * * File: Dnode.h * * Usage: Defines the Dnode class * * * * No warranty is given or implied. * * There is no license associated with this code. * * There are no restrictions on the use of this code. * * This code may be used in any way the reader wishes. * * No credit or credits are given and none are required. * * The reader may take this code and claim they wrote it. * ************************************************************/ #ifndef DNODE_H #define DNODE_H /*********************************************************** * Includes * ************************************************************/ #include "Config.h" /*********************************************************** * Define Dnode class * ************************************************************/ class Dnode { // Friend classes friend class Communication; friend class Descriptor; friend class Player; // Public functions static public: static int GetCount(); // Private functions private: Dnode(int SocketHandle, CString IpAddress); ~Dnode(); // Private variables static private: static int Count; // Private variables private: Dnode *pDnodeNext; Dnode *pDnodePrev; Player *pPlayer; int DnodeFd; int InputTick; CString PlayerInp; CString PlayerIpAddress; CString PlayerName; CString PlayerNewCharacter; CString PlayerOut; CString PlayerPassword; bool PlayerStateBye; bool PlayerStateLoggingOn; bool PlayerStatePlaying; bool PlayerStateReconnecting; bool PlayerStateSendBanner; bool PlayerStateWaitMaleFemale; bool PlayerStateWaitName; bool PlayerStateWaitNameConfirmation; bool PlayerStateWaitNewCharacter; bool PlayerStateWaitPassword; int PlayerWrongPasswordCount; }; #endif