summaryrefslogtreecommitdiff
path: root/include/SSVOpenHexagon/Components/CPlayer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/SSVOpenHexagon/Components/CPlayer.hpp')
-rw-r--r--include/SSVOpenHexagon/Components/CPlayer.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/SSVOpenHexagon/Components/CPlayer.hpp b/include/SSVOpenHexagon/Components/CPlayer.hpp
index 4e008e06..61c14c9e 100644
--- a/include/SSVOpenHexagon/Components/CPlayer.hpp
+++ b/include/SSVOpenHexagon/Components/CPlayer.hpp
@@ -67,10 +67,10 @@ private:
float _currTiltedAngle;
void drawPivot(const unsigned int sides, const sf::Color& colorMain,
- Utils::FastVertexVectorQuads& wallQuads,
+ Utils::FastVertexVectorTris& wallQuads,
Utils::FastVertexVectorTris& capTris, const sf::Color& capColor);
- void drawDeathEffect(Utils::FastVertexVectorQuads& wallQuads);
+ void drawDeathEffect(Utils::FastVertexVectorTris& wallQuads);
template <typename Wall>
[[nodiscard]] bool checkWallCollisionEscape(
@@ -114,14 +114,16 @@ public:
void updatePosition(const float radius);
+ [[nodiscard]] sf::Color getColor(const sf::Color& colorPlayer) const;
+
[[nodiscard]] sf::Color getColorAdjustedForSwap(
const sf::Color& colorPlayer) const;
void draw(const unsigned int sides, const sf::Color& colorMain,
- const sf::Color& colorPlayer, Utils::FastVertexVectorQuads& wallQuads,
+ const sf::Color& colorPlayer, Utils::FastVertexVectorTris& wallQuads,
Utils::FastVertexVectorTris& capTris,
Utils::FastVertexVectorTris& playerTris, const sf::Color& capColor,
- const float angleTiltIntensity);
+ const float angleTiltIntensity, const bool swapBlinkingEffect);
[[nodiscard]] bool push(const int movementDir, const float radius,
const CWall& wall, const sf::Vector2f& mCenterPos,