source: abuse/trunk/src/chat.hpp @ 112

Last change on this file since 112 was 106, checked in by Sam Hocevar, 12 years ago
  • Rename the "eh" variable to "wm" because it's a window manager, not an event handler.
  • No longer pass the window manager to functions, there's only one.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Starting work on singleton code; will get rid of all

references to an arbitrary window_manager* because
there's only going to be one, and it's not ever
going to change.

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