Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

ps
Class CConsole

   in CConsole.h
   in CConsole.cpp

class CConsole


Field Summary
private bool m_bFocus
          
private bool m_bToggle
          
private bool m_bVisible
          
 size_t m_charsPerPage
          
private std::deque< std::wstring > m_deqBufHistory
          
private std::deque< std::wstring > m_deqMsgHistory
          
private float m_fHeight
          
private float m_fVisibleFrac
          
private float m_fWidth
          
private float m_fX
          
private float m_fY
          
private CStrW m_helpText
          
private int m_iBufferLength
          
private int m_iBufferPos
          
 int m_iFontHeight
          
 int m_iFontOffset
          
 int m_iFontWidth
          
private int m_iMsgHistPos
          
private std::map< std::wstring, fptr > m_mapFuncList
          
private int m_MaxHistoryLines
          
private JSObject* m_ScriptObject
          
private CStr m_sHistoryFile
          
private wchar_t* m_szBuffer
          
 
Constructor Summary
CConsole()
          
~CConsole()
          
 
Method Summary
private void DrawBuffer( void )
          
private void DrawCursor( void )
          
private void DrawHistory( void )
          
private void DrawWindow( void )
          
 void FlushBuffer()
          
 void FlushBuffer( void )
          
 const wchar_t* GetBuffer()
          
private void InsertBuffer( void )
          
 void InsertChar( const int szChar, const wchar_t cooked )
          
 void InsertMessage( const wchar_t* szMessage,... )
          
private void InsertMessageRaw( const CStrW& message )
          
 bool IsActive()
          
private bool IsBOB( void )
          
private bool IsEmpty( void )
          
private bool IsEOB( void )
          
private bool IsFull( void )
          
private void LoadHistory()
          
private void ProcessBuffer( const wchar_t* szLine )
          
 void ReceivedChatMessage( const wchar_t* szSender, const wchar_t* szMessage )
          
 void RegisterFunc( fptr F, const wchar_t* szName )
          
 void Render()
          
private void SaveHistory()
          
 void SendChatMessage( const wchar_t* szMessage )
          
 void SetBuffer( const wchar_t* szMessage,... )
          
 void SetSize( float X = 300, float Y = 0, float W = 800, float H = 600 )
          
 void SetVisible( bool visible )
          
 void ToggleVisible()
          
private void ToLower( wchar_t* szMessage, uint iSize = 0 )
          
private void Trim( wchar_t* szMessage, const wchar_t cChar = 32, uint iSize = 0 )
          
 void Update( float DeltaTime )
          
 void Update( const float DeltaTime )
          
 void UpdateScreenSize( int w, int h )
          
 void UseHistoryFile( const CStr& filename, int max_history_lines )
          
 

Field Detail

m_bFocus

private bool m_bFocus;

m_bToggle

private bool m_bToggle;

m_bVisible

private bool m_bVisible;

m_charsPerPage

public size_t m_charsPerPage;

m_deqBufHistory

private std::deque< std::wstring > m_deqBufHistory;

m_deqMsgHistory

private std::deque< std::wstring > m_deqMsgHistory;

m_fHeight

private float m_fHeight;

m_fVisibleFrac

private float m_fVisibleFrac;

m_fWidth

private float m_fWidth;

m_fX

private float m_fX;

m_fY

private float m_fY;

m_helpText

private CStrW m_helpText;

m_iBufferLength

private int m_iBufferLength;

m_iBufferPos

private int m_iBufferPos;

m_iFontHeight

public int m_iFontHeight;

m_iFontOffset

public int m_iFontOffset;

m_iFontWidth

public int m_iFontWidth;

m_iMsgHistPos

private int m_iMsgHistPos;

m_mapFuncList

private std::map< std::wstring, fptr > m_mapFuncList;

m_MaxHistoryLines

private int m_MaxHistoryLines;

m_ScriptObject

private JSObject* m_ScriptObject;

m_sHistoryFile

private CStr m_sHistoryFile;

m_szBuffer

private wchar_t* m_szBuffer;


Constructor Detail

CConsole

public CConsole();

~CConsole

public ~CConsole();


Method Detail

DrawBuffer

private void DrawBuffer( void );

DrawCursor

private void DrawCursor( void );

DrawHistory

private void DrawHistory( void );

DrawWindow

private void DrawWindow( void );

FlushBuffer

public void FlushBuffer();

FlushBuffer

 void FlushBuffer( void );

GetBuffer

public const wchar_t* GetBuffer();

InsertBuffer

private void InsertBuffer( void );

InsertChar

public void InsertChar( const int szChar, const wchar_t cooked );

InsertMessage

public void InsertMessage( const wchar_t* szMessage,... );

InsertMessageRaw

private void InsertMessageRaw( const CStrW& message );

IsActive

public bool IsActive();

IsBOB

private bool IsBOB( void );

IsEmpty

private bool IsEmpty( void );

IsEOB

private bool IsEOB( void );

IsFull

private bool IsFull( void );

LoadHistory

private void LoadHistory();

ProcessBuffer

private void ProcessBuffer( const wchar_t* szLine );

ReceivedChatMessage

public void ReceivedChatMessage( const wchar_t* szSender, const wchar_t* szMessage );

RegisterFunc

public void RegisterFunc( fptr F, const wchar_t* szName );

Render

public void Render();

SaveHistory

private void SaveHistory();

SendChatMessage

public void SendChatMessage( const wchar_t* szMessage );

SetBuffer

public void SetBuffer( const wchar_t* szMessage,... );

SetSize

public void SetSize( float X = 300, float Y = 0, float W = 800, float H = 600 );

SetVisible

public void SetVisible( bool visible );

ToggleVisible

public void ToggleVisible();

ToLower

private void ToLower( wchar_t* szMessage, uint iSize = 0 );

Trim

private void Trim( wchar_t* szMessage, const wchar_t cChar = 32, uint iSize = 0 );

Update

public void Update( float DeltaTime );

Update

 void Update( const float DeltaTime );

UpdateScreenSize

public void UpdateScreenSize( int w, int h );

UseHistoryFile

public void UseHistoryFile( const CStr& filename, int max_history_lines );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD