1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef TILE_WINDOW_HH
|
---|
10 | #define TILE_WINDOW_HH
|
---|
11 |
|
---|
12 |
|
---|
13 | #include "window/window.hh"
|
---|
14 | #include "g1_limits.hh"
|
---|
15 | #include "menu/menuitem.hh"
|
---|
16 | #include "editor/dialogs/pick_win.hh"
|
---|
17 |
|
---|
18 | class g1_quad_object_class;
|
---|
19 |
|
---|
20 | class g1_3d_tile_window : public g1_3d_pick_window
|
---|
21 | {
|
---|
22 | g1_quad_object_class *object;
|
---|
23 |
|
---|
24 | public :
|
---|
25 | int tile_num;
|
---|
26 |
|
---|
27 | void set_tile_num(int num)
|
---|
28 | {
|
---|
29 | tile_num=num;
|
---|
30 | request_redraw(i4_F);
|
---|
31 | }
|
---|
32 |
|
---|
33 | g1_3d_tile_window(w16 w, w16 h,
|
---|
34 | int tile_num,
|
---|
35 | g1_3d_pick_window::camera_struct &camera,
|
---|
36 | i4_image_class *active_back,
|
---|
37 | i4_image_class *passive_back,
|
---|
38 | i4_event_reaction_class *reaction);
|
---|
39 |
|
---|
40 | i4_bool selected();
|
---|
41 | void do_press();
|
---|
42 | void draw_object(g1_draw_context_class *context);
|
---|
43 | i4_menu_item_class *copy() { return new g1_3d_tile_window(width(), height(),
|
---|
44 | tile_num,
|
---|
45 | camera, act, pass,
|
---|
46 | reaction->copy()); }
|
---|
47 |
|
---|
48 | char *name() { return "object window"; }
|
---|
49 | } ;
|
---|
50 |
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|