summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-08 19:59:28 -0700
committerIra Rice <irarice@gmail.com>2009-02-08 19:59:28 -0700
commit40edf4e91558cffd83d9015a2cf4a16360e27855 (patch)
tree7e0f53ab1c82f694412a94856fc2a9ba05d87370 /src/being.h
parent450edb5900a46ada0cc6292f0079a31ea5d04573 (diff)
downloadmana-40edf4e91558cffd83d9015a2cf4a16360e27855.tar.gz
mana-40edf4e91558cffd83d9015a2cf4a16360e27855.tar.bz2
mana-40edf4e91558cffd83d9015a2cf4a16360e27855.tar.xz
mana-40edf4e91558cffd83d9015a2cf4a16360e27855.zip
Mostly fixed a few field values to behave better in Windows, as well as
removed the need for sending graphics to the setSpeech function (since it isn't needed) and started actually using the time variable which it's passed (could be set to show the speech longer if the dialog is longer, for example). Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h
index 109a44ad..d722092e 100644
--- a/src/being.h
+++ b/src/being.h
@@ -39,6 +39,9 @@
#define FIRST_IGNORE_EMOTE 14
#define STATUS_EFFECTS 32
+#define SPEECH_TIME 500
+#define SPEECH_MAX_TIME 1000
+
class AnimatedSprite;
class Image;
class ItemInfo;
@@ -152,7 +155,7 @@ class Being : public Sprite
* @param text The text that should appear.
* @param time The amount of time the text should stay in milliseconds.
*/
- void setSpeech(const std::string &text, Uint32 time);
+ void setSpeech(const std::string &text, Uint32 time = 500);
/**
* Puts a damage bubble above this being.
@@ -244,7 +247,7 @@ class Being : public Sprite
/**
* Draws the speech text above the being.
*/
- void drawSpeech(Graphics *graphics, int offsetX, int offsetY);
+ void drawSpeech(int offsetX, int offsetY);
/**
* Draws the emotion picture above the being.