source: abuse/trunk/src/chat.h @ 682

Last change on this file since 682 was 643, checked in by Sam Hocevar, 8 years ago

imlib: refactor Event and EventHandler?.

  • Property svn:keywords set to Id
File size: 705 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef CHAT_HPP_
12#define CHAT_HPP_
13
14#include "console.h"
15
16class chat_console : public console
17{
18
19  public :
20  int chat_event(Event &ev) { if (!con_win) return 0; else return con_win==ev.window; }
21  void draw_user(char *st);
22  void put_all(char *st);
23  void clear();
24  chat_console(JCFont *font, int width, int height);
25
26} ;
27
28extern chat_console *chat;
29
30#endif
31
32
Note: See TracBrowser for help on using the repository browser.