Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Continue Class Reference

#include <continue.h>

Inheritance diagram for Continue:

Inheritance graph
[legend]
Collaboration diagram for Continue:

Collaboration graph
[legend]

Public Member Functions

 Continue (Window *aParent)
 ~Continue (void)

Protected Member Functions

virtual void SetupDialog (const std::string &aFormname)
virtual const bool SetupWindow (const Message &msg)
virtual const bool MainLoop (void)
 true if the screen must be refreshed

virtual const bool evMouseLClick (const CtrlMessage &msg)

Private Attributes

vector< Thread * > initTasks

Constructor & Destructor Documentation

Continue::Continue Window *  aParent  ) 
 

Definition at line 30 of file continue.cpp.

References ePlayGame.

00031 : BqBase( ePlayGame , aParent )
00032 {
00033 }

Continue::~Continue void   ) 
 

Definition at line 35 of file continue.cpp.

00036 {
00037 }


Member Function Documentation

const bool Continue::evMouseLClick const CtrlMessage &  msg  )  [protected, virtual]
 

Definition at line 83 of file continue.cpp.

References BqBase::isDisplayed.

00084 {
00085         if( isDisplayed )
00086                 if( ((Window *)msg.source)->GetId() == 11 )
00087                 {
00088                         isDisplayed= false;
00089                         GetParent()->UpdateWindow();
00090                         return !isDisplayed;
00091                 }
00092 
00093         return isDisplayed;
00094 }

const bool Continue::MainLoop void   )  [protected, virtual]
 

true if the screen must be refreshed

Reimplemented from BqBase.

Definition at line 69 of file continue.cpp.

References initTasks, BqBase::MainLoop(), and SetupDialog().

00070 {
00071         initTasks.clear();
00072         initTasks.push_back( new SetupGalaxyScreen );
00073         initTasks.push_back( new LoadGalaxyData );
00074 
00075         for( vector<Thread*>::iterator it = initTasks.begin() ;it != initTasks.end() ; ++it )
00076                 (*it)->Start( 0 );
00077 
00078         SetupDialog( "PlayGame" );
00079 
00080         return BqBase::MainLoop();
00081 }

void Continue::SetupDialog const std::string &  aFormname  )  [protected, virtual]
 

Reimplemented from BqBase.

Definition at line 52 of file continue.cpp.

References ArsSendMessage, ePlayGame, BqBase::f, BqBase::InitDialog(), BqBase::isDisplayed, S_ALIGN_LEFT, and S_ALIGN_TOP.

Referenced by MainLoop().

00053 {
00054         if( !f )
00055                 f = Load( aFormname , ePlayGame );
00056 
00057         ArsSendMessage( Message( Message::SETUP_WINDOW , this ) );
00058 
00059         if( f )
00060         {
00061                 f->InitDialog( this );
00062                 InitDialog();
00063                 f->Draw();
00064                 isDisplayed = true;
00065         }
00066         SetTextAlign( S_ALIGN_TOP , S_ALIGN_LEFT );
00067 }

const bool Continue::SetupWindow const Message &  msg  )  [protected, virtual]
 

Reimplemented from BqBase.

Definition at line 39 of file continue.cpp.

References initTasks, and BqBase::SetupWindow().

00040 {
00041         BqBase::SetupWindow( aMsg );
00042 
00043         for( vector<Thread*>::iterator it = initTasks.begin() ;it != initTasks.end() ; ++it )
00044                 (*it)->Wait();
00045 
00046         for( it = initTasks.begin() ;it != initTasks.end() ; ++it )
00047                 delete *it;
00048         initTasks.clear();
00049         return true;
00050 }


Field Documentation

vector<Thread *> Continue::initTasks [private]
 

Definition at line 21 of file continue.h.

Referenced by MainLoop(), and SetupWindow().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:18 2003 for Borqueror by doxygen 1.3.3