Some fixes
This commit is contained in:
parent
5427f85c0a
commit
7808b7dbf7
|
@ -23,7 +23,7 @@ namespace simpleengine {
|
|||
HitboxComponent(Entity& owning_entity, sf::Sprite& sprite, float sprite_offset_x, float sprite_offset_y,
|
||||
float width, float height);
|
||||
|
||||
sf::RectangleShape& GetHitbox() const;
|
||||
sf::RectangleShape& GetHitbox();
|
||||
|
||||
bool DoesIntersect(const sf::FloatRect& rect);
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ namespace simpleengine {
|
|||
|
||||
void Update(const float& delta_time) override;
|
||||
|
||||
simpleengine::AnimationComponent GetAnimationComponent();
|
||||
simpleengine::MovementComponent GetMovementComponent();
|
||||
simpleengine::AnimationComponent& GetAnimationComponent();
|
||||
simpleengine::MovementComponent& GetMovementComponent();
|
||||
private:
|
||||
std::string MovementAnimationTypeToStr(const MovementAnimationType& type);
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ simpleengine::HitboxComponent::HitboxComponent(Entity& owning_entity, sf::Sprite
|
|||
}
|
||||
}
|
||||
|
||||
sf::RectangleShape &simpleengine::HitboxComponent::GetHitbox() const {
|
||||
sf::RectangleShape &simpleengine::HitboxComponent::GetHitbox() {
|
||||
return hitbox;
|
||||
}
|
||||
|
||||
|
|
|
@ -111,10 +111,10 @@ std::string simpleengine::SideScrollerMovementAnimationComponent::MovementAnimat
|
|||
}
|
||||
}
|
||||
|
||||
simpleengine::AnimationComponent simpleengine::SideScrollerMovementAnimationComponent::GetAnimationComponent() {
|
||||
simpleengine::AnimationComponent& simpleengine::SideScrollerMovementAnimationComponent::GetAnimationComponent() {
|
||||
return anim_component;
|
||||
}
|
||||
|
||||
simpleengine::MovementComponent simpleengine::SideScrollerMovementAnimationComponent::GetMovementComponent() {
|
||||
simpleengine::MovementComponent& simpleengine::SideScrollerMovementAnimationComponent::GetMovementComponent() {
|
||||
return move_component;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue