-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdevsel.h
36 lines (31 loc) · 997 Bytes
/
devsel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Abuse - dark 2D side-scrolling platform game
* Copyright (c) 1995 Crack dot Com
* Copyright (c) 2005-2011 Sam Hocevar <[email protected]>
*
* This software was released into the Public Domain. As with most public
* domain software, no warranty is made or implied by Crack dot Com, by
* Jonathan Clark, or by Sam Hocevar.
*/
#ifndef __DEVSCROLL_HPP_
#define __DEVSCROLL_HPP_
#include "scroller.h"
class tile_picker : public scroller
{
int th,last_sel,type,scale,wid,rev;
public :
tile_picker(int X, int Y, int ID, int spec_type,
int scale, int scroll_h, int Wid, ifield *Next);
virtual void handle_inside_event(Event &ev, image *screen, InputManager *inm);
virtual void scroll_event(int newx, image *screen);
virtual char *read() { return (char *)this; }
int picw();
int pich();
int total();
int get_current();
void set_current(int x);
void recenter(image *screen);
void reverse() { rev=!rev; }
} ;
extern int cur_bg,cur_fg,cur_char;
#endif