#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 |
|
|
Definition at line 3 of file gameitfc.cpp.
00004 : ssObject( 0 ) 00005 { 00006 } |
|
|
Definition at line 8 of file gameitfc.cpp.
00009 {
00010 }
|
|
|
Definition at line 48 of file gameitfc.cpp.
00049 {
00050 bool ans = XBox::evMouseLClick( msg );
00051
00052 return ans;
00053 }
|
|
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
|
Definition at line 21 of file gameitfc.h. Referenced by evValueChange(), and SetupWindow(). |
1.3.3