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

16 lines
415 B
C++

#include "KCirclePawn.h"
namespace KapitanGame
{
KCirclePawn::KCirclePawn(const KVector2D& position, const KTexture& texture,
const std::shared_ptr<KPlayerController>& playerController, KSettings* settings) : KPawn(position, texture, playerController, settings),
Collider(this, static_cast<float>(texture.GetWidth())/2.0f)
{
}
const KCollider* KCirclePawn::GetCollider() const
{
return &Collider;
}
}