SDLPP: make copySelf actually copy everything
This commit is contained in:
@@ -130,4 +130,8 @@ void CircleColider::render( Renderer &renderer ) {
|
||||
int CircleColider::getRadius() const {
|
||||
return rad_;
|
||||
}
|
||||
|
||||
std::shared_ptr< CollisionPolygon > CircleColider::copySelf() {
|
||||
return std::make_shared< CircleColider >( *this );
|
||||
}
|
||||
} // namespace SDLPP
|
||||
|
||||
Reference in New Issue
Block a user