source: abuse/trunk/src/devsel.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: 917 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 __DEVSCROLL_HPP_
11#define __DEVSCROLL_HPP_
12#include "scroller.hpp"
13
14class tile_picker : public scroller
15{
16  int th,last_sel,type,scale,wid,rev;
17  public :
18  tile_picker(int X, int Y, int ID, int spec_type,
19                 int scale, int scroll_h, int Wid, ifield *Next);
20  virtual void handle_inside_event(event &ev, image *screen, input_manager *inm);
21  virtual void scroll_event(int newx, image *screen);
22  virtual char *read() { return (char *)this; }
23  int picw();
24  int pich();
25  int total();
26  int get_current();
27  void set_current(int x);
28  void recenter(image *screen);
29  void reverse() { rev=!rev; }
30} ;
31
32extern int cur_bg,cur_fg,cur_char;
33
34#endif
35
Note: See TracBrowser for help on using the repository browser.