Show
Ignore:
Timestamp:
09/01/10 17:07:59 (21 months ago)
Author:
Carsten
Message:

Revised classes ScrollInfoT and FontT, fixing bug #21.
Thanks to Luigi Auriemma for the report!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/Ca3DE/Client/ScrlInfo.hpp

    r136 r144  
    2222*/ 
    2323 
    24 /*******************/ 
    25 /*** Scroll Info ***/ 
    26 /*******************/ 
    27  
    2824#ifndef _CLIENT_SCROLLINFO_HPP_ 
    2925#define _CLIENT_SCROLLINFO_HPP_ 
    3026 
    3127#include "Templates/Array.hpp" 
     28#include <string> 
    3229 
    3330 
     
    3734class ScrollInfoT 
    3835{ 
    39     private: 
    40  
    41     char  MAX_LINES; 
    42     char  FirstLine; 
    43     char  NrOfLines; 
    44     float TimeLeft; 
    45     ArrayT< ArrayT<char> > InfoLine; 
    46  
    47  
    4836    public: 
    4937 
    5038    ScrollInfoT(); 
    51     void Print(const char* PrintString, ...); 
     39 
     40    void Print(const std::string& Line); 
    5241    void Draw(FontT& Font, unsigned long PosX, unsigned long PosY, float FrameWidth, float FrameHeight) const; 
    5342    void AdvanceTime(float FrameTime); 
     43 
     44 
     45    private: 
     46 
     47    const unsigned int  m_MAX_LINES; 
     48    float               m_TimeLeft; 
     49    ArrayT<std::string> m_InfoLines; 
    5450}; 
    5551