5 |
* modify it under the terms of the GNU General Public License |
* modify it under the terms of the GNU General Public License |
6 |
* as published by the Free Software Foundation; either version 2 |
* as published by the Free Software Foundation; either version 2 |
7 |
* of the License, or (at your option) any later version. |
* of the License, or (at your option) any later version. |
8 |
* |
* |
9 |
* This program is distributed in the hope that it will be useful, |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
143 |
invisible. */ |
invisible. */ |
144 |
SpriteHandle AddSprite (const px::V2 &pos, const char *modelname=0); |
SpriteHandle AddSprite (const px::V2 &pos, const char *modelname=0); |
145 |
|
|
146 |
|
|
147 |
void SetReferencePoint (const px::V2 &point); |
void SetReferencePoint (const px::V2 &point); |
148 |
void SetFollowMode (FollowMode m); |
void SetFollowMode (FollowMode m); |
149 |
void FocusReferencePoint(); |
void FocusReferencePoint(); |
180 |
enum TextMode { |
enum TextMode { |
181 |
TEXT_SCROLLING, // Scroll text from right to left |
TEXT_SCROLLING, // Scroll text from right to left |
182 |
TEXT_2SECONDS, // Show text centered, for 2 seconds |
TEXT_2SECONDS, // Show text centered, for 2 seconds |
183 |
|
TEXT_5SECONDS, // Show text centered, for 5 seconds |
184 |
TEXT_STATIC // Show text centered, indefinitely |
TEXT_STATIC // Show text centered, indefinitely |
185 |
}; |
}; |
186 |
|
|
192 |
virtual void set_inventory (Inventory *inv) = 0; |
virtual void set_inventory (Inventory *inv) = 0; |
193 |
virtual void update_inventory (Inventory *inv) = 0; |
virtual void update_inventory (Inventory *inv) = 0; |
194 |
|
|
195 |
virtual void show_text (const std::string &str, |
virtual void show_text (const std::string &str, |
196 |
TextMode m=TEXT_SCROLLING) = 0; |
TextMode m=TEXT_SCROLLING) = 0; |
197 |
virtual void hide_text() = 0; |
virtual void hide_text() = 0; |
198 |
}; |
}; |
205 |
//---------------------------------------- |
//---------------------------------------- |
206 |
namespace display |
namespace display |
207 |
{ |
{ |
208 |
enum ShadowType |
enum ShadowType |
209 |
{ |
{ |
210 |
SHADOW_NONE, |
SHADOW_NONE, |
211 |
SHADOW_STIPPLE, |
SHADOW_STIPPLE, |
214 |
void SetShadowType(ShadowType st); |
void SetShadowType(ShadowType st); |
215 |
|
|
216 |
|
|
217 |
enum DisplayFlags |
enum DisplayFlags |
218 |
{ |
{ |
219 |
SHOW_FLOOR = 0x01, |
SHOW_FLOOR = 0x01, |
220 |
SHOW_STONES = 0x02, |
SHOW_STONES = 0x02, |