source: abuse/trunk/src/devsel.hpp @ 97

Last change on this file since 97 was 57, checked in by Sam Hocevar, 11 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 997 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, window_manager *wm,
19                 int scale, int scroll_h, int Wid, ifield *Next);
20  virtual void handle_inside_event(event &ev, image *screen, window_manager *wm, input_manager *inm);
21  virtual void scroll_event(int newx, image *screen, window_manager *wm);
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, window_manager *wm);
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.