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

GameItfc Class Reference

#include <gameitfc.h>


Public Member Functions

 GameItfc (void)
virtual ~GameItfc (void)

Protected Member Functions

virtual const bool SetupWindow (const Message &msg)
virtual const bool evValueChange (const CtrlMessage &msg)
virtual const bool evValueChanging (const CtrlMessage &msg)
virtual const bool evMouseLClick (const CtrlMessage &msg)

Private Attributes

Window * ssObject


Constructor & Destructor Documentation

GameItfc::GameItfc void   ) 
 

Definition at line 3 of file gameitfc.cpp.

00004 : ssObject( 0 )
00005 {
00006 }

GameItfc::~GameItfc void   )  [virtual]
 

Definition at line 8 of file gameitfc.cpp.

00009 {
00010 }


Member Function Documentation

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

Definition at line 48 of file gameitfc.cpp.

00049 {
00050         bool ans = XBox::evMouseLClick( msg );
00051 
00052         return ans;
00053 }

const bool GameItfc::evValueChange const CtrlMessage &  msg  )  [protected, virtual]
 

Definition at line 26 of file gameitfc.cpp.

References ArsPostMessage, ePlayGame, and ssObject.

00027 {
00028         bool ans = XBox::evValueChange( msg );
00029 
00030         if( ((Window *)msg.source)->GetId() == 20 )
00031                 ArsPostMessage( CtrlMessage( Message::CTRL_VALUECHANGE , ssObject , msg.source , msg.value ) );
00032         else if( ((Window *)msg.source)->GetId() == 42 || ((Window *)msg.source)->GetId() == 43 )
00033                 Rsrc::GetAddr( ePlayGame )->GetArsObject( 20 )->UpdateWindow();
00034 
00035         return true;
00036 }

const bool GameItfc::evValueChanging const CtrlMessage &  msg  )  [protected, virtual]
 

Definition at line 38 of file gameitfc.cpp.

References ePlayGame.

00039 {
00040         bool ans = XBox::evValueChanging( msg );
00041 
00042         if( ((Window *)msg.source)->GetId() == 42 || ((Window *)msg.source)->GetId() == 43 )
00043                 Rsrc::GetAddr( ePlayGame )->GetArsObject( 20 )->UpdateWindow();
00044 
00045         return true;
00046 }

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

Definition at line 12 of file gameitfc.cpp.

References ePlayGame, and ssObject.

00013 {
00014         XBox::SetupWindow( msg );
00015 
00016         MessageServer::Instance().RegisterMessageClient( this , Message::CTRL_LCLICK );
00017         MessageServer::Instance().RegisterMessageClient( this , Message::CTRL_VALUECHANGE );
00018         MessageServer::Instance().RegisterMessageClient( this , Message::CTRL_VALUECHANGING );
00019         
00020         Form    *f = Rsrc::GetAddr( ePlayGame );
00021         ssObject = f->GetArsObject( 21 );
00022 
00023         return true;
00024 }


Field Documentation

Window* GameItfc::ssObject [private]
 

Definition at line 21 of file gameitfc.h.

Referenced by evValueChange(), and SetupWindow().


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