/[enigma]/enigma/src/display.hh
ViewVC logotype

Diff of /enigma/src/display.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dheck, Sun Mar 23 17:20:20 2003 UTC revision 1.9 by reallysoft, Sun Apr 27 08:53:01 2003 UTC
# Line 5  Line 5 
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
# Line 143  namespace display Line 143  namespace display
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();
# Line 180  namespace display Line 180  namespace display
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    
# Line 191  namespace display Line 192  namespace display
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      };      };
# Line 204  namespace display Line 205  namespace display
205  //----------------------------------------  //----------------------------------------
206  namespace display  namespace display
207  {  {
208      enum ShadowType      enum ShadowType
209      {      {
210          SHADOW_NONE,          SHADOW_NONE,
211          SHADOW_STIPPLE,          SHADOW_STIPPLE,
# Line 213  namespace display Line 214  namespace display
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,

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26