コード例 #1
0
void CGameSocket::RecvUserMoveEdge(Packet & pkt)
{
	uint16 uid;
	float fX, fZ, fY;
	pkt >> uid >> fX >> fZ >> fY;
	SetUid(fX, fZ, uid, 0);
}
コード例 #2
0
void CGameSocket::RecvUserMove(Packet & pkt)
{
	uint16 uid, speed;
	float fX, fZ, fY;
	pkt >> uid >> fX >> fZ >> fY >> speed;
	SetUid(fX, fZ, uid, speed);
}
コード例 #3
0
void CGameSocket::RecvUserMoveEdge(char* pBuf)
{
//	TRACE("RecvUserMoveEdge()\n");
	int index = 0;
	short uid=-1, speed=0;
	float fX=-1.0f, fZ=-1.0f, fY=-1.0f;

	uid = GetShort( pBuf, index );
	fX = Getfloat(pBuf, index);
	fZ = Getfloat(pBuf, index);
	fY = Getfloat(pBuf, index);

	SetUid(fX, fZ, uid, speed);
//	TRACE("RecvUserMoveEdge()---> uid = %d, x=%f, z=%f \n", uid, fX, fZ);
}
コード例 #4
0
// Used when an entry is copied
void CAgnAttachment::CopyL(const CAgnAttachment& aSource)
	{
	__ASSERT_ALWAYS(Type() == aSource.Type(), Panic(EAgmErrBadAttachmentType));
	
	HBufC8* content = NULL;
	if (aSource.Content().Length())
		{
		content = aSource.Content().AllocL();
		}
	SetContent(content);

	HBufC8* mimeType = NULL;
	if (aSource.MimeType().Length())
		{
		mimeType = aSource.MimeType().AllocL();
		}
	SetMimeType(mimeType);

	SetUid(aSource.Uid());
	iAttributes = aSource.iAttributes;
	iFlags = aSource.iFlags;
	SetSize(aSource.Size());
	SetLabelL(aSource.Label());
	}