-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat.h
32 lines (23 loc) · 705 Bytes
/
chat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Abuse - dark 2D side-scrolling platform game
* Copyright (c) 1995 Crack dot Com
* Copyright (c) 2005-2011 Sam Hocevar <[email protected]>
*
* This software was released into the Public Domain. As with most public
* domain software, no warranty is made or implied by Crack dot Com, by
* Jonathan Clark, or by Sam Hocevar.
*/
#ifndef CHAT_HPP_
#define CHAT_HPP_
#include "console.h"
class chat_console : public console
{
public :
int chat_event(Event &ev) { if (!con_win) return 0; else return con_win==ev.window; }
void draw_user(char *st);
void put_all(char *st);
void clear();
chat_console(JCFont *font, int width, int height);
} ;
extern chat_console *chat;
#endif