Last change
on this file since 481 was
481,
checked in by Sam Hocevar, 12 years ago
|
Fuck the history, I'm renaming all .hpp files to .h for my own sanity.
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
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 __TOOLS_HPP_ |
---|
11 | #define __TOOLS_HPP_ |
---|
12 | |
---|
13 | #include "jwindow.h" |
---|
14 | #include "input.h" |
---|
15 | #include "specs.h" |
---|
16 | #include "scroller.h" |
---|
17 | #include "visobj.h" |
---|
18 | |
---|
19 | class tool_picker : public spicker |
---|
20 | { |
---|
21 | filter *map; |
---|
22 | visual_object **icons; |
---|
23 | int *ids; |
---|
24 | int total_icons; |
---|
25 | int iw,ih; |
---|
26 | palette *old_pal; |
---|
27 | |
---|
28 | public : |
---|
29 | |
---|
30 | // you are expected keep image and id list in memory, tool_picker does not copy them |
---|
31 | tool_picker(int X, int Y, int ID, |
---|
32 | int show_h, visual_object **Icons, int *Ids, int total_ic, |
---|
33 | palette *icon_palette, palette *pal, ifield *Next); |
---|
34 | |
---|
35 | virtual void draw_item(image *screen, int x, int y, int num, int active); |
---|
36 | virtual int total() { return total_icons; } |
---|
37 | virtual int item_width() { return iw; } |
---|
38 | virtual int item_height() { return ih; } |
---|
39 | virtual void note_new_current(image *screen, InputManager *inm, int x) |
---|
40 | { wm->push_event(new event(ids[x],NULL)); } |
---|
41 | |
---|
42 | void remap(palette *pal, image *screen); |
---|
43 | ~tool_picker(); |
---|
44 | } ; |
---|
45 | |
---|
46 | |
---|
47 | #endif |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.