summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/chat.cpp9
-rw-r--r--src/gui/chat.h24
2 files changed, 19 insertions, 14 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index b308bed4..5401948d 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -38,17 +38,23 @@ using namespace std;
pipe your questions, suggestions and flames to: kth5@gawab.com
*/
+/**
+*/
Chat::Chat(const char * logfile, int item_num) {
chatlog_file.open(logfile, ios::out | ios::app);
items = 0;
items_keep = item_num;
}
+/**
+*/
Chat::~Chat() {
chatlog_file.flush();
chatlog_file.close();
}
+/**
+*/
void Chat::chat_dlgrsize(int) {
}
@@ -102,7 +108,8 @@ void Chat::chat_log(string line, int own, ALFONT_FONT * font) {
}
/** function overload -> calls original chat_log()
- after processing the packet */
+ after processing the packet
+*/
void Chat::chat_log(CHATSKILL action, ALFONT_FONT * font) {
chat_log(const_msg(action), BY_SERVER, font);
}
diff --git a/src/gui/chat.h b/src/gui/chat.h
index 5280ff49..f2cd05ce 100644
--- a/src/gui/chat.h
+++ b/src/gui/chat.h
@@ -31,19 +31,6 @@
using namespace std;
-/**
- Simple ChatLog Object v0.5 (i'd say...)
-
- Bestviewd w/ Bitstream Vera Sans Mono @ 9pt and a tab-width of 2 spaces
-
- Author: kth5 aka Alexander Baldeck
- pipe your questions, suggestions and flames to: kth5@gawab.com
-
- NOTE:
- i documented all functions in their implementation. ;-)
-*/
-
-
#define BY_GM 0 // those should be self-explanatory =)
#define BY_PLAYER 1
#define BY_OTHER 2
@@ -114,6 +101,17 @@ struct CHATSKILL {
char reason;
};
+/**
+ Simple ChatLog Object v0.5 (i'd say...)
+
+ Bestviewd w/ Bitstream Vera Sans Mono @ 9pt and a tab-width of 2 spaces
+
+ Author: kth5 aka Alexander Baldeck
+ pipe your questions, suggestions and flames to: kth5@gawab.com
+
+ NOTE:
+ i documented all functions in their implementation. ;-)
+*/
class Chat {
public :
Chat(const char *, int);