Ejemplo n.º 1
0
void BoxCollider::Update()
{
	mRect.x = PositionTL().x;
	mRect.y = PositionTL().y;
	mRect.w = CurrentSize().x;
	mRect.h = CurrentSize().y;
}
Ejemplo n.º 2
0
bool ByteQueue::operator==(const ByteQueue &rhs) const
{
	const unsigned long currentSize = CurrentSize();

	if (currentSize != rhs.CurrentSize())
		return false;

	for (unsigned long i = 0; i<currentSize; i++)
		if ((*this)[i] != rhs[i])
			return false;

	return true;
}
Ejemplo n.º 3
0
bool ByteQueue::operator==(const ByteQueue &rhs) const
{
	const lword currentSize = CurrentSize();

	if (currentSize != rhs.CurrentSize())
		return false;

	Walker walker1(*this), walker2(rhs);
	byte b1, b2;

	while (walker1.Get(b1) && walker2.Get(b2))
		if (b1 != b2)
			return false;

	return true;
}