2dkg/2dkg_zad5/2dgk_zad5/KCollider.cpp
2022-01-20 08:52:14 +01:00

35 lines
601 B
C++

#include "KCollider.h"
namespace KapitanGame {
KCollider::KCollider(const KCollider& other) = default;
KCollider::KCollider(KCollider&& other) noexcept: Parent(other.Parent)
{
}
KCollider& KCollider::operator=(const KCollider& other)
{
if (this == &other)
return *this;
Parent = other.Parent;
return *this;
}
KCollider& KCollider::operator=(KCollider&& other) noexcept
{
if (this == &other)
return *this;
Parent = other.Parent;
return *this;
}
KCollider::KCollider(KSolid* parent): Parent(parent)
{
}
KSolid* KCollider::GetParent() const
{
return Parent;
}
}