Пример #1
0
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCAddEffectToTile::toString () 
	const throw()
{
	__BEGIN_TRY

	StringStream msg;
	msg << "GCAddEffectToTile("
		<< ",ObjectID:" << (int)m_ObjectID
		<< ",X,Y:" << (int)m_X << "," << (int)m_Y
		<< ",EffectID:" << (int)m_EffectID
		<< ",Duration:" << (int)m_Duration
		<< ")";
	return msg.toString();

	__END_CATCH
}
Пример #2
0
string CGThrowItem::toString () const
       throw()
{
	__BEGIN_TRY
		
	StringStream msg;
    msg << "CGThrowItem("
		<< "ObjectID:" << (int)m_ObjectID 
    	<< ",TargetObjectID:" << (int)m_TargetObjectID 
		<< ",InvenX" << (int)m_InvenX
		<< ",InvenY" << (int)m_InvenY
		<< ")" ;
	return msg.toString();

	__END_CATCH
}
Пример #3
0
string EffectSharpShield::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;
	msg << "EffectSharpShield("
		<< "ObjectID:" << getObjectID()
		<< ",ClientEffectClass:" << (int)m_ClientEffectClass
		<< ",Damage:" << m_Damage
		<< ")";
	return msg.toString();

	__END_CATCH

}
Пример #4
0
string EffectFuryOfGnome::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectFuryOfGnome("
		<< "ObjectID:" << getObjectID()
		<< ")";

	return msg.toString();

	__END_CATCH

}
Пример #5
0
string EffectMiracleShield::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectMiracleShield("
		<< "Defense:" << m_DefenseBonus
		<< ",Protection:" << m_ProtectionBonus
		<< ")";

	return msg.toString();

	__END_CATCH
}
Пример #6
0
string ShrineInfo::toString() const
	throw()
{
	StringStream msg;

	msg << "ShrineInfo("
		<< "MonsterType:" << (int)m_MonsterType
		<< ",ShrineType:" << (m_ShrineType==SHRINE_GUARD?"GUARD":"HOLY")
		<< ",ZoneID:" << (int)m_ZoneID
		<< ",X:" << (int)m_X
		<< ",Y:" << (int)m_Y
		<< ",Name:" << m_Name
		<< ")";

	return msg.toString();
}
Пример #7
0
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCStatusCurrentHP::toString () const
       throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "GCStatusCurrentHP("
		<< "ObjectID:" << m_ObjectID
		<< ",CurrentHP:" << (int)m_CurrentHP
		<< ")" ;

	return msg.toString();

	__END_CATCH
}
//--------------------------------------------------------------------------------
// get packet's debug string
//--------------------------------------------------------------------------------
string GCAddVampireFromBurrowing::toString () const
       throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "GCAddVampireFromBurrowing("
		<< "VampireInfo:" << m_VampireInfo.toString()
		<< "EffectInfo:" << m_pEffectInfo->toString()
		<< ")" ;

	return msg.toString();

	__END_CATCH
}
Пример #9
0
string OustersEXPInfo::toString() const
	throw()
{
	__BEGIN_TRY
	
	StringStream msg;
	msg << "OustersEXPInfo ("
			<< " Level : "   << (int)m_Level
			<< " GoalExp : "   << (int)m_GoalExp
			<< " AccumExp : " << (int)m_AccumExp
			<< " SkillPointBonus : " << (int)m_SkillPointBonus
			<< ")";
	return msg.toString();

	__END_CATCH
}
Пример #10
0
//////////////////////////////////////////////////////////////////////
// get packet's debug string
//////////////////////////////////////////////////////////////////////
string GCModifyGuildMemberInfo::toString () const
       throw()
{
	__BEGIN_TRY
		
	StringStream msg;
	
	msg << "GCModifyGuildMemberInfo("
		<< "GuildID:" << (int)m_GuildID
		<< "GuildName:" << m_GuildName
		<< "GuildMemberRank:" << (int)m_GuildMemberRank
		<< ")" ;
	
	return msg.toString();
		
	__END_CATCH
}
Пример #11
0
 /////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string ServerGroupInfo::toString () 
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "ServerGroupInfo("
		<< "GroupID : "<< m_GroupID
		<< "GroupName : " << m_GroupName
		<< "Stat : " << m_Stat
		<< ")";

	return msg.toString();

	__END_CATCH
}
Пример #12
0
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCSkillToSelfOK1::toString () 
	const throw()
{
	__BEGIN_TRY

	StringStream msg;
	msg << "GCSkillToSelfOK1("
		<< "SkillType:" << (int)m_SkillType 
		<< ",CEffectID:" << (int)m_CEffectID 
		<< ",Duration:" << (int)m_Duration
		<< ",Grade:" << (int)m_Grade;
	msg << ModifyInfo::toString();
	msg << ")";
	return msg.toString();

	__END_CATCH
}
Пример #13
0
//----------------------------------------------------------------------
// get debug string
//----------------------------------------------------------------------
string EffectTransportCreature::toString () const 
	throw()
{
	StringStream msg;

	if (m_pZone) 
	{
		msg << "EffectTransportCreature("
				<< ",ZoneName:" << m_ZoneName.c_str()
				<< ",ZoneID:" << (int)m_pZone->getZoneID()
				<< ",X:"     << (int)getX()
				<< ",Y:"     << (int)getY()
				<< ")";
	}

	return msg.toString();
}
Пример #14
0
string CGAddZoneToInventory::toString () 
	const throw()
{
	__BEGIN_TRY
		
	StringStream msg;
	msg << "CGAddZoneToInventory("
	    << "ObjectID : "     << (int)m_ObjectID 
		<< ", ZoneX : "      << (int)m_ZoneX 
		<< ", ZoneY : "      << (int)m_ZoneY 
		<< ", InventoryX : " << (int)m_InvenX
		<< ", InventoryY : " << (int)m_InvenY 
		<< ")";
	return msg.toString();

	__END_CATCH
}
Пример #15
0
string EventQuestLootingInfo::toString() const
{
	StringStream msg;
	msg << "EventQuestLootingInfo : "
		<< "QuestLevel : " << m_QuestLevel
		<< " ,Type : " << (uint)m_Type
		<< "\n\tZoneID : " << m_LootingZoneID
		<< " ,MonsterType : " << m_LootingMonsterType
		<< "\n\tItemClass : " << ItemClass2String[m_LootingItemClass].c_str()
		<< " ,MinItemType : " << m_LootingItemTypeMin
		<< " ,MaxItemType : " << m_LootingItemTypeMax
		<< "\n\tRace : " << (uint)m_Race
		<< " ,Min Grade : " << m_MinGrade
		<< " ,Max Grade : " << m_MaxGrade;

	return msg.toString();
}
Пример #16
0
////////////////////////////////////////////////////////////////////////////////
//--------------------------------------------------------------------------------
// get packet's debug string
//--------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
string GCStashSell::toString () const
       throw()
{
	__BEGIN_TRY
	__BEGIN_DEBUG
		
	StringStream msg;
	
	msg << "GCStashSell("
		<< "Price:" << (int)m_Price
		<< ")";

	return msg.toString();
		
	__END_DEBUG
	__END_CATCH
}
Пример #17
0
string EffectSeduction::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectSeduction("
		<< "ObjectID:" << getObjectID()
		<< ",ToHit:" << m_ToHitPenalty
		<< ",Damage:" << m_DamagePenalty 
		<< ")";

	return msg.toString();

	__END_CATCH
}
Пример #18
0
string CGShopRequestBuy::toString () 
	const throw()
{
	__BEGIN_TRY

	StringStream msg;
	msg << "CGShopRequestBuy(" 
	 		<< "ObjectID:" << (int)m_ObjectID  << ","
			<< "RackType:" << (int)m_RackType << ","
			<< "RackIndex:" << (int)m_RackIndex << ","
			<< "NumberOfItems:" << (int)m_Num << ","
			<< "InvenX" << (int)m_X << ","
			<< "InvenY" << (int)m_Y << ","
			<< ")";
	return msg.toString();

	__END_CATCH
}
Пример #19
0
//--------------------------------------------------------------------------------
// get packet's debug string
//--------------------------------------------------------------------------------
string GCShopVersion::toString () const
       throw()
{
	__BEGIN_TRY
		
	StringStream msg;
	
	msg << "GCShopVersion(" << "ObjectID:" << m_ObjectID;
	
	for (ShopRackType_t i=0; i<SHOP_RACK_TYPE_MAX; i++)
		msg << " Version[" << (int)i << "] : " << (int)m_Version[i];

	msg << ")";
	
	return msg.toString();
		
	__END_CATCH
}
Пример #20
0
////////////////////////////////////////////////////////////////////////////////
// get debug string
////////////////////////////////////////////////////////////////////////////////
string ActionWarpToNoviceZone::toString () const 
	throw()
{
	__BEGIN_TRY

	StringStream msg;
	msg << "ActionWarpToNoviceZone("
	    << "NoviceZoneID:" << (int)m_NoviceZoneID
	    << ",NoviceX:"  << (int)m_NoviceX
	    << ",NoviceY:"  << (int)m_NoviceY
	    << "BeginnerZoneID:" << (int)m_BeginnerZoneID
	    << ",BeginnerX:"  << (int)m_BeginnerX
	    << ",BeginnerY:"  << (int)m_BeginnerY
	    << ")";
	return msg.toString();

	__END_CATCH
}
Пример #21
0
string CGSkillToInventory::toString () const
	throw()
{
	__BEGIN_TRY
		
	StringStream msg;
	msg << "CGSkillToInventory("
		<< "SkillType:"  << (int)m_SkillType 
		<< ",ObjectID:"  << (int)m_ObjectID 
		<< ",X:"         << (int)m_X 
		<< ",Y:"         << (int)m_Y 
		<< ",TargetX:"   << (int)m_TargetX 
		<< ",TargetY:"   << (int)m_TargetY 
		<< ")" ;
	return msg.toString();

	__END_CATCH
}
Пример #22
0
//--------------------------------------------------------------------------------
// get packet's debug string
//--------------------------------------------------------------------------------
string GCRankBonusInfo::toString () const
throw()
{
    __BEGIN_TRY

    StringStream msg;

    msg << "GCRankBonusInfo(";
    for (list<DWORD>::const_iterator itr = m_RankBonusInfoList.begin(); itr!= m_RankBonusInfoList.end(); itr++)
    {
        msg << (*itr) << ",";
    }
    msg << ")";

    return msg.toString();

    __END_CATCH
}
//----------------------------------------------------------------------
// get debug string
//----------------------------------------------------------------------
string EffectContinualGroundAttack::toString () const 
	throw()
{
	StringStream msg;

	if (m_pZone) 
	{
		msg << "EffectContinualGroundAttack("
				<< "ZoneID:" << (int)m_pZone->getZoneID();
	}

	msg << ",Delay:" << (int)m_Delay
		<< ",Deadline:" << (int)m_Deadline.tv_sec 
			<< "." << (int)m_Deadline.tv_usec
			<< ")";

	return msg.toString();
}
Пример #24
0
string EffectDeleteTile::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectDeleteTile("
		<< "ObjectID:" << (int)getObjectID()
        << ",Zone:" << m_pZone
		<< ",X:" << (int)m_X
		<< ",Y:" << (int)m_Y
		<< ")";

	return msg.toString();

	__END_CATCH

}
Пример #25
0
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCAttackArmsOK1::toString () 
	const throw()
{
	__BEGIN_TRY
	__BEGIN_DEBUG

	StringStream msg;
	msg << "GCAttackArmsOK1("
		<< "SkillType:" << (int)m_SkillType
		<< "ObjectID:" << (int)m_ObjectID
		<< ",BulletNum:" << (int)m_BulletNum
		<< ",Success:" << (int)m_bSuccess
		<< ModifyInfo::toString()
		<< ")";
	return msg.toString();

	__END_DEBUG
	__END_CATCH
}
Пример #26
0
//--------------------------------------------------------------------------------
// get debug string
//--------------------------------------------------------------------------------
string Update::toString () const
	throw()
{
	StringStream msg;

	msg << "Update("
		<< "Version:" << m_Version
		<< ",UpdateType:" << UPDATETYPE2String[ m_UpdateType ];

	for (uint i = 0 ; i < maxParams ; i ++ ) {
		if (m_Params[i] == "" )
			break;
		msg << ",Params[" << i << "]:" << m_Params[i];
	}

	msg << ")";

	return msg.toString();
}
Пример #27
0
//----------------------------------------------------------------------
// get debug string
//----------------------------------------------------------------------
string EffectDeleteItem::toString () const 
	throw()
{
	StringStream msg;

	msg << "EffectDeleteItem("
			<< "ZoneID:" << (int)m_pZone->getZoneID()
			<< ",X:"     << (int)getX()
			<< ",Y:"     << (int)getY();

	if (m_pTarget) msg << ",Target:" << m_pTarget->toString();
	else           msg << ",Target:NULL";

	msg << ",Deadline:" << (int)m_Deadline.tv_sec 
			<< "." << (int)m_Deadline.tv_usec;

	msg << ")";

	return msg.toString();
}
Пример #28
0
//--------------------------------------------------------------------------------
// get debug string
//--------------------------------------------------------------------------------
string WeatherManager::toString () const 
	throw()
{
	StringStream msg;

	msg << "WeatherManager(";
	msg << "    오늘의 날씨 : " << Weather2String[ m_TodayWeather ];
	msg << "      현재 날씨 : " << Weather2String[ m_CurrentWeather ];
	msg << "비/눈이 올 확률 : " << (int)m_Probability << "%";
	msg << "      날씨 레벨 : " << (int)m_WeatherLevel;

	time_t currentTime = time(0);

	msg << "       현재시간 : " << ctime(&currentTime);
	msg << "  게임상의 내일 : " << ctime(&m_Tomorrow);
	msg << "다음날씨변경시간: " << ctime(&m_NextWeatherChangingTime);
	msg << "다음번개체크시간: " << ctime(&m_NextLightning);

	return msg.toString();
}
Пример #29
0
//--------------------------------------------------------------------------------
// get debug string
//--------------------------------------------------------------------------------
string ZoneGroupManager::toString () const
	throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "ZoneGroupManager(";
		
	for (map< ZoneGroupID_t , ZoneGroup* >::const_iterator itr = m_ZoneGroups.begin() ; itr != m_ZoneGroups.end() ; itr ++) 
	{
		msg << itr->second->toString();
	}

	msg << ")";

	return msg.toString();

	__END_CATCH
}
Пример #30
0
string CastleShrineSet::toString() const
	throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "ShrineSet("
		<< "ShrineID:" << (int)m_ShrineID
		<< ","
		<< m_GuardShrine.toString()
		<< ","
		<< m_HolyShrine.toString()
		<< ",ItemType:" << (int)m_ItemType
		<< ")";

	return msg.toString();

	__END_CATCH
}