?? card.cpp
字號:
// {{{RME classifier 'Logical View::CardDefinitions::Card'#if defined( PRAGMA ) && ! defined( PRAGMA_IMPLEMENTED )#pragma implementation "Card.h"#endif#include <RTSystem/CardGameComponent.h>#include <Card.h>// {{{RME tool 'OT::Cpp' property 'ImplementationPreface'// {{{USR// }}}USR// }}}RMEstatic void rtg_Card_init( const RTObject_class * type, Card * target ){ (void)new( target ) Card;}static void rtg_Card_copy( const RTObject_class * type, Card * target, const Card * source ){ (void)new( target ) Card( *source );}static void rtg_Card_destroy( const RTObject_class * type, Card * target ){ target->~Card();}const RTFieldDescriptor rtg_Card_fields[] ={ // {{{RME classAttribute 'rank' { "rank" , RTOffsetOf( Card, rank ) // {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor' , &RTType_int // }}}RME // {{{RME tool 'OT::CppTargetRTS' property 'GenerateTypeModifier' , (const RTTypeModifier *)0 // }}}RME } // }}}RME // {{{RME classAttribute 'suit' , { "suit" , RTOffsetOf( Card, suit ) // {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor' , &RTType_int // }}}RME // {{{RME tool 'OT::CppTargetRTS' property 'GenerateTypeModifier' , (const RTTypeModifier *)0 // }}}RME } // }}}RME};const RTObject_class RTType_Card ={ (const RTObject_class *)0 , (RTSuperAccessFunction)0 , "Card" , (RTVersionId)0 , (RTFieldOffset)sizeof( Card ) , (RTInitFunction)rtg_Card_init , (RTCopyFunction)rtg_Card_copy#if OBJECT_DECODE , RTstruct_decode#endif#if OBJECT_ENCODE , RTstruct_encode#endif , (RTDestroyFunction)rtg_Card_destroy , 2 , rtg_Card_fields};// {{{RME tool 'OT::Cpp' property 'GenerateDefaultConstructor'Card::Card( void ) : rank( 0 ) , suit( 0 ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateDestructor'Card::~Card( void ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateCopyConstructor'Card::Card( const Card & rtg_arg ) : rank( rtg_arg.rank ) , suit( rtg_arg.suit ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateAssignmentOperator'Card & Card::operator=( const Card & rtg_arg ){ if( this != &rtg_arg ) { rank = rtg_arg.rank; suit = rtg_arg.suit; } return *this;}// }}}RME#if OBJECT_DECODERTTypeInstaller rtg_Card_installer( RTType_Card );#endif// {{{RME tool 'OT::Cpp' property 'ImplementationEnding'// {{{USR// }}}USR// }}}RME// }}}RME
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -