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

Last change on this file since 555 was 555, checked in by Sam Hocevar, 11 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

  • Property svn:keywords set to Id
File size: 997 bytes
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
[494]4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
[56]5 *
6 *  This software was released into the Public Domain. As with most public
[555]7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
[56]9 */
10
[2]11#ifndef __DEVSCROLL_HPP_
12#define __DEVSCROLL_HPP_
[481]13#include "scroller.h"
[2]14
15class tile_picker : public scroller
16{
17  int th,last_sel,type,scale,wid,rev;
18  public :
[124]19  tile_picker(int X, int Y, int ID, int spec_type,
20         int scale, int scroll_h, int Wid, ifield *Next);
[120]21  virtual void handle_inside_event(event &ev, image *screen, InputManager *inm);
[106]22  virtual void scroll_event(int newx, image *screen);
[2]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);
[106]29  void recenter(image *screen);
[2]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.