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

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

imlib: refactor Event and EventHandler?.

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