00001
00002
00003
00004
00005
00006 #ifdef USE_TILE
00007 #ifndef TILEREG_CMD_H
00008 #define TILEREG_CMD_H
00009
00010 #include "tilereg-grid.h"
00011
00012 static const command_type _common_commands[] =
00013 {
00014
00015 CMD_REST, CMD_EXPLORE, CMD_INTERLEVEL_TRAVEL,
00016 #ifdef CLUA_BINDINGS
00017 CMD_AUTOFIGHT,
00018 #endif
00019 CMD_USE_ABILITY, CMD_PRAY, CMD_SEARCH_STASHES,
00020
00021
00022 CMD_REPLAY_MESSAGES, CMD_RESISTS_SCREEN, CMD_DISPLAY_OVERMAP,
00023 CMD_DISPLAY_RELIGION, CMD_DISPLAY_MUTATIONS, CMD_DISPLAY_SKILLS,
00024 CMD_DISPLAY_CHARACTER_STATUS, CMD_DISPLAY_KNOWN_OBJECTS,
00025
00026
00027 CMD_SAVE_GAME_NOW, CMD_EDIT_PLAYER_TILE, CMD_DISPLAY_COMMANDS,
00028 CMD_CHARACTER_DUMP
00029 };
00030
00031 static const int n_common_commands = ARRAYSZ(_common_commands);
00032
00033 class CommandRegion : public GridRegion
00034 {
00035 public:
00036 CommandRegion(const TileRegionInit &init);
00037
00038 virtual void update();
00039 virtual int handle_mouse(MouseEvent &event);
00040 virtual bool update_tip_text(std::string &tip);
00041 virtual bool update_tab_tip_text(std::string &tip, bool active);
00042 virtual bool update_alt_text(std::string &alt);
00043
00044 virtual const std::string name() const { return "Commands"; }
00045
00046 protected:
00047 virtual void pack_buffers();
00048 virtual void draw_tag();
00049 virtual void activate();
00050 };
00051
00052 #endif
00053 #endif