diff options
author | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-03-01 04:06:17 +0000 |
---|---|---|
committer | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-03-01 04:06:17 +0000 |
commit | 857794d1c02fd0719634bea9674caa8c76d97007 (patch) | |
tree | a8f1a7043935e8429d79d9e96c429fced5507f36 /src/gui/chargedialog.h | |
parent | 17de81fb71b4f91d2e0897f802a36df5630f1eaa (diff) | |
download | mana-857794d1c02fd0719634bea9674caa8c76d97007.tar.gz mana-857794d1c02fd0719634bea9674caa8c76d97007.tar.bz2 mana-857794d1c02fd0719634bea9674caa8c76d97007.tar.xz mana-857794d1c02fd0719634bea9674caa8c76d97007.zip |
This is the update for the charge bar. It resets every time an attack message is sent to the server. I still haven't actually worked the timer into this. I'd appreciate it if someone would explain how. Thanks.
Diffstat (limited to 'src/gui/chargedialog.h')
-rw-r--r-- | src/gui/chargedialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/chargedialog.h b/src/gui/chargedialog.h index 5bc192fd..7d47a732 100644 --- a/src/gui/chargedialog.h +++ b/src/gui/chargedialog.h @@ -27,6 +27,8 @@ #include "window.h" #include "progressbar.h" +#define CHARGE_TIME 1000 // time in milliseconds it takes to charge up an attack + class ChargeDialog : public Window, public gcn::ActionListener { private: @@ -45,7 +47,8 @@ class ChargeDialog : public Window, public gcn::ActionListener ~ChargeDialog(); // action listener - void action(const std::string&); + void action(const std::string&); + void draw(gcn::Graphics *graphics); }; #endif |