-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Ipagaxi/fight
Fight
- Loading branch information
Showing
23 changed files
with
223 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef INCOMINGBANNER_HPP | ||
#define INCOMINGBANNER_HPP | ||
|
||
#include <string> | ||
#include <SFML/Graphics.hpp> | ||
|
||
#include "GameState.hpp" | ||
|
||
class IncomingBanner { | ||
public: | ||
IncomingBanner(GameState &GameState); | ||
IncomingBanner(GameState &gameState, std::string label); | ||
|
||
void setNewLabel(std::string newLabel); | ||
void startAnimation(); | ||
void updateAnimation(GameState &gameState, bool &animationRuns); | ||
void drawAnimation(sf::RenderWindow &gameWindow); | ||
|
||
private: | ||
sf::RectangleShape banner; | ||
sf::Text bannerText; | ||
void init(GameState &gameState); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 29 additions & 29 deletions
58
src/include/UIPlayerOverview.hpp → src/include/UI_Objects/UIPlayerOverview.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#ifndef UIPLAYEROVERVIEW_HPP | ||
#define UIPLAYEROVERVIEW_HPP | ||
|
||
#include <SFML/Graphics.hpp> | ||
#include <algorithm> | ||
|
||
#include "GameState.hpp" | ||
#include "UIElements/UIBox.hpp" | ||
#include "UIElements/UIBorderedImage.hpp" | ||
#include "UIComponents/UIStats.hpp" | ||
|
||
|
||
class UIPlayerOverview { | ||
public: | ||
UIPlayerOverview(GameState &gameState); | ||
|
||
UIBorderedImage playerFrame; | ||
Player player; | ||
|
||
void changeHealth(int value); | ||
void draw(sf::RenderWindow &gameWindow); | ||
|
||
private: | ||
UIBox backgroundBox = UIBox(sf::Color(51, 25, 0, 150), "borders/metal_border_900x900.png"); | ||
sf::Texture playerBackgroundTX; | ||
sf::Sprite playerBackgroundSP; | ||
UIStats statsComponent; | ||
}; | ||
|
||
#ifndef UIPLAYEROVERVIEW_HPP | ||
#define UIPLAYEROVERVIEW_HPP | ||
|
||
#include <SFML/Graphics.hpp> | ||
#include <algorithm> | ||
|
||
#include "GameState.hpp" | ||
#include "UIElements/UIBox.hpp" | ||
#include "UIElements/UIBorderedImage.hpp" | ||
#include "UIComponents/UIStats.hpp" | ||
|
||
|
||
class UIPlayerOverview { | ||
public: | ||
UIPlayerOverview(GameState &gameState); | ||
|
||
UIBorderedImage playerFrame; | ||
Player player; | ||
|
||
void changeHealth(int value); | ||
void draw(sf::RenderWindow &gameWindow); | ||
|
||
private: | ||
UIBox backgroundBox = UIBox(sf::Color(51, 25, 0, 150), "borders/metal_border_900x900.png"); | ||
sf::Texture playerBackgroundTX; | ||
sf::Sprite playerBackgroundSP; | ||
UIStats statsComponent; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.