00001
00002
00003
00004
00005
00006 #ifdef USE_TILE
00007 #ifndef TILEREG_DOLL_H
00008 #define TILEREG_DOLL_H
00009
00010 #include "tiledoll.h"
00011 #include "tilereg.h"
00012
00013 class DollEditRegion : public ControlRegion
00014 {
00015 public:
00016 DollEditRegion(ImageManager *im, FontWrapper *font);
00017
00018 virtual void render();
00019 virtual void clear();
00020 virtual void run();
00021
00022 virtual int handle_mouse(MouseEvent &event);
00023 protected:
00024 virtual void on_resize() {}
00025
00026
00027 int m_doll_idx;
00028
00029 int m_cat_idx;
00030
00031 int m_part_idx;
00032
00033
00034 dolls_data m_dolls[NUM_MAX_DOLLS];
00035
00036 dolls_data m_player;
00037 dolls_data m_job_default;
00038 dolls_data m_doll_copy;
00039 bool m_copy_valid;
00040
00041 tile_doll_mode m_mode;
00042
00043 FontWrapper *m_font;
00044
00045 ShapeBuffer m_shape_buf;
00046 FontBuffer m_font_buf;
00047 SubmergedTileBuffer m_tile_buf;
00048 SubmergedTileBuffer m_cur_buf;
00049 };
00050
00051 #endif
00052 #endif