| version 1.7, 2002/09/19 15:29:45 |
version 1.8, 2002/09/29 03:52:00 |
|
|
| /************************************************************************** |
/************************************************************************** |
| * * |
* * |
| * Atlantis talker object-oriented header file * |
* Atlantis talker header file * |
| * * |
* * |
| * Programmed by Ondrej Jombik <nepto@pobox.sk> * |
* Programmed by Ondrej Jombik <nepto@pobox.sk> * |
| * Copyright (c) 2000 Condy software inc. * |
* Copyright (c) 2000 Condy software inc. * |
|
|
| * Nepto [1.5.2000] |
* Nepto [1.5.2000] |
| */ |
*/ |
| |
|
| #ifndef _PLATON_TELNET_ATLANTIS_H |
#ifndef _PLATON_NET_ATLANTIS_H |
| #define _PLATON_TELNET_ATLANTIS_H |
#define _PLATON_NET_ATLANTIS_H |
| |
|
| #define ATL_HOST "atlantis.sk" |
#define ATL_HOST "atlantis.sk" |
| #define ATL_HOST_STR ATL_HOST |
#define ATL_HOST_STR ATL_HOST |
|
|
| } |
} |
| #endif |
#endif |
| |
|
| /**************************************************************************** |
#endif /* #ifndef _PLATON_NET_ATLANTIS_H */ |
| * Classes * |
|
| ****************************************************************************/ |
|
| |
|
| #ifdef __cplusplus |
|
| |
|
| class atl_startup{ |
|
| private: |
|
| int status; |
|
| char nick[ATL_NICK_STRSIZE+1]; |
|
| char level[ATL_LEVEL_STRSIZE+1]; |
|
| int ll_day; |
|
| int ll_month; |
|
| int ll_year; |
|
| char lastlink[ATL_LASTLINK_STRSIZE+1]; |
|
| char room[ATL_ROOM_STRSIZE+1]; |
|
| |
|
| public: |
|
| atl_startup(void); |
|
| ~atl_startup(void); |
|
| void Reset(void); |
|
| int Analyze(const char*orig_buf); |
|
| int IsDefined(void); |
|
| int WriteToStream(FILE*f); |
|
| }; |
|
| |
|
| class atl_status { |
|
| private: |
|
| int status; |
|
| char currlink[ATL_CURRLINK_STRSIZE+1]; |
|
| char lastlink[ATL_LASTLINK_STRSIZE+1]; |
|
| char email[ATL_EMAIL_STRSIZE+1]; |
|
| |
|
| public: |
|
| atl_status(void); |
|
| ~atl_status(void); |
|
| void Reset(void); |
|
| int Analyze(const char*orig_buf); |
|
| int IsDefined(void); |
|
| int WriteToStream(FILE*f); |
|
| }; |
|
| |
|
| class atl_examine{ |
|
| private: |
|
| unsigned char type; |
|
| int status; |
|
| char nick[ATL_NICK_STRSIZE+1]; |
|
| char level[ATL_LEVEL_STRSIZE+1]; |
|
| int ttl_day; |
|
| int ttl_hour; |
|
| int ttl_min; |
|
| int ll_day; |
|
| int ll_month; |
|
| int ll_year; |
|
| |
|
| public: |
|
| atl_examine(void); |
|
| ~atl_examine(void); |
|
| void Reset(void); |
|
| int Analyze(const char*orig_buf); |
|
| int IsDefined(void); |
|
| int WriteToStream(FILE*f); |
|
| }; |
|
| |
|
| class atl_hangman{ |
|
| private: |
|
| int status; |
|
| unsigned char step; |
|
| char word[ATL_NICK_STRSIZE+1]; |
|
| char letters[ATL_LEVEL_STRSIZE+1]; |
|
| |
|
| public: |
|
| atl_hangman(void); |
|
| ~atl_hangman(void); |
|
| void Reset(void); |
|
| int Analyze(const char*orig_buf); |
|
| int IsDefined(void); |
|
| int WriteToStream(FILE*f); |
|
| }; |
|
| |
|
| #endif /* #ifdef __cplusplus */ |
|
| |
|
| #endif /* #ifndef _PLATON_TELNET_ATLANTIS_H */ |
|
| |
|