-
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 #47 from Ipagaxi/char-act
some new stuff
- Loading branch information
Showing
64 changed files
with
1,142 additions
and
760 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,20 @@ | ||
#ifndef CHARACTERACTIVITY_HPP | ||
#define CHARACTERACTIVITY_HPP | ||
|
||
#include "Activities/Activity.hpp" | ||
#include "Defines.hpp" | ||
#include "Game.hpp" | ||
|
||
class CharacterActivity : public Activity { | ||
public : | ||
CharacterActivity(Game &game); | ||
|
||
ActivityEnum executeActivity(Game &game) override; | ||
|
||
|
||
private : | ||
sf::Texture backgroundTX; | ||
sf::Sprite backgroundSP; | ||
}; | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
|
||
enum ActivityEnum { | ||
Fight, | ||
Menu | ||
Menu, | ||
Character | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef FIGHTEVENTS_HPP | ||
#define FIGHTEVENTS_HPP | ||
|
||
#include <SFML/Graphics.hpp> | ||
#include "UIElements/UIStats.hpp" | ||
#include "UIObjects/UIEnemyOverview.hpp" | ||
#include "UIObjects/UIPlayerOverview.hpp" | ||
#include "Animations/TextFadingManager.hpp" | ||
#include "Animations/IncomingBanner.hpp" | ||
#include "Game.hpp" | ||
|
||
class FightEnv { | ||
public: | ||
FightEnv(Game &game); | ||
|
||
sf::Texture backgroundTX; | ||
sf::Sprite backgroundSP; | ||
UIStats playerStatsBox; | ||
UIEnemyOverview enemyOverview; | ||
UIPlayerOverview playerOverview; | ||
TextFadingManager textFadingManager; | ||
sf::Texture playersTurnTX; | ||
sf::Texture enemiesTurnTX; | ||
sf::Sprite turnSP; | ||
sf::Music backgroundMusic; | ||
|
||
sf::Color pickedColor; | ||
int maxMultiplier = 2; | ||
int isPlayersTurn; | ||
bool enemyDamageCalculated = false; | ||
|
||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef FIGHTSTATEENUM_HPP | ||
#define FIGHTSTATEENUM_HPP | ||
|
||
enum FightStateEnum { | ||
PLAYER_STATE, | ||
ENEMY_STATE, | ||
TURN_CHANGE | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef ENEMIESTURN_HPP | ||
#define ENEMIESTURN_HPP | ||
|
||
#include <random> | ||
#include "FightStates/FightState.hpp" | ||
#include "FightStateEnum.hpp" | ||
|
||
class EnemiesTurn: public FightState { | ||
public: | ||
~EnemiesTurn(); | ||
FightStateEnum run(Game &game, FightEnv &fightEnv) override; | ||
|
||
private: | ||
}; | ||
|
||
#endif |
Oops, something went wrong.