⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hand.cpp

📁 含有uml的多个实例及实例的java源码。
💻 CPP
字号:
// {{{RME classifier 'Logical View::CardDefinitions::Hand'#if defined( PRAGMA ) && ! defined( PRAGMA_IMPLEMENTED )#pragma implementation "Hand.h"#endif#include <RTSystem/CardGameComponent.h>#include <Hand.h>#include <Card.h>// {{{RME tool 'OT::Cpp' property 'ImplementationPreface'// {{{USR// }}}USR// }}}RMEstatic void rtg_Hand_init( const RTObject_class * type, Hand * target ){	(void)new( target ) Hand;}static void rtg_Hand_copy( const RTObject_class * type, Hand * target, const Hand * source ){	(void)new( target ) Hand( *source );}static void rtg_Hand_destroy( const RTObject_class * type, Hand * target ){	target->~Hand();}const RTObject_class RTType_Hand ={	(const RTObject_class *)0  , (RTSuperAccessFunction)0  , "Hand"  , (RTVersionId)0  , (RTFieldOffset)sizeof( Hand )  , (RTInitFunction)rtg_Hand_init  , (RTCopyFunction)rtg_Hand_copy#if OBJECT_DECODE  , RTstruct_decode#endif#if OBJECT_ENCODE  , RTstruct_encode#endif  , (RTDestroyFunction)rtg_Hand_destroy  , 1  , Hand::rtg_Hand_fields};// {{{RME tool 'OT::Cpp' property 'GenerateDefaultConstructor'Hand::Hand( void ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateDestructor'Hand::~Hand( void ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateCopyConstructor'Hand::Hand( const Hand & rtg_arg )	: _fivecards( rtg_arg._fivecards ){}// }}}RME// {{{RME tool 'OT::Cpp' property 'GenerateAssignmentOperator'Hand & Hand::operator=( const Hand & rtg_arg ){	if( this != &rtg_arg )		_fivecards = rtg_arg._fivecards;	return *this;}// }}}RME// {{{RME operation 'add(const Card &,int)'int Hand::add( const Card & card, int index ){	// {{{USR	if( index >= _fivecards.size() )		return 0;	else		_fivecards[ index ] = card;	return 1;	// }}}USR}// }}}RME// {{{RME operation 'get(int)'Card & Hand::get( int index ){	// {{{USR	return _fivecards[index];	// }}}USR}// }}}RME// {{{RME operation 'Hand(int)'Hand::Hand( int initial_size )	// {{{RME tool 'OT::Cpp' property 'ConstructorInitializer'	// {{{USR	: _fivecards(initial_size)	// }}}USR	// }}}RME{	// {{{USR	// }}}USR}// }}}RME// {{{RME operation 'size()'int Hand::size( void ) const{	// {{{USR	return _fivecards.size();	// }}}USR}// }}}RME// {{{RME operation 'value()'int Hand::value( void ){	// {{{USR	return 0;	// }}}USR}// }}}RMEconst RTFieldDescriptor Hand::rtg_Hand_fields[] ={	// {{{RME associationEnd '_fivecards'	{		"_fivecards"	  , RTOffsetOf( Hand, _fivecards )		// {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor'	  , &RTType_CardList		// }}}RME		// {{{RME tool 'OT::CppTargetRTS' property 'GenerateTypeModifier'	  , (const RTTypeModifier *)0		// }}}RME	}	// }}}RME};#if OBJECT_DECODERTTypeInstaller rtg_Hand_installer( RTType_Hand );#endif// {{{RME tool 'OT::Cpp' property 'ImplementationEnding'// {{{USR// }}}USR// }}}RME// }}}RME

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -