void BoxCollider::Update() { mRect.x = PositionTL().x; mRect.y = PositionTL().y; mRect.w = CurrentSize().x; mRect.h = CurrentSize().y; }
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; }
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; }