Apply the new ground_level method.
[crawl.git] / crawl-ref / source / tilereg-doll.h
blob156ceffdfedb541910ae349d00b358f9faa54661
1 /*
2 * File: tilereg_doll.h
3 * Created by: ennewalker on Sat Jan 5 01:33:53 2008 UTC
4 */
6 #ifdef USE_TILE
7 #ifndef TILEREG_DOLL_H
8 #define TILEREG_DOLL_H
10 #include "tiledoll.h"
11 #include "tilereg.h"
13 class DollEditRegion : public ControlRegion
15 public:
16 DollEditRegion(ImageManager *im, FontWrapper *font);
18 virtual void render();
19 virtual void clear();
20 virtual void run();
22 virtual int handle_mouse(MouseEvent &event);
23 protected:
24 virtual void on_resize() {}
26 // Currently edited doll index.
27 int m_doll_idx;
28 // Currently edited category of parts.
29 int m_cat_idx;
30 // Current part in current category.
31 int m_part_idx;
33 // Set of loaded dolls.
34 dolls_data m_dolls[NUM_MAX_DOLLS];
36 dolls_data m_player;
37 dolls_data m_job_default;
38 dolls_data m_doll_copy;
39 bool m_copy_valid;
41 tile_doll_mode m_mode;
43 FontWrapper *m_font;
45 ShapeBuffer m_shape_buf;
46 FontBuffer m_font_buf;
47 SubmergedTileBuffer m_tile_buf;
48 SubmergedTileBuffer m_cur_buf;
51 #endif
52 #endif