-
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 #23 from slo248/hotfix/feat/CCR-20
hotfix/feat/CCR-20
- Loading branch information
Showing
141 changed files
with
2,236 additions
and
1,031 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
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Empty file.
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 @@ | ||
|
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,4 @@ | ||
22 | ||
18 | ||
0 | ||
3 |
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,41 @@ | ||
#ifndef APPLICATION_HPP | ||
#define APPLICATION_HPP | ||
|
||
#include "MusicPlayer.hpp" | ||
#include "Player.hpp" | ||
#include "ResourceHolder.hpp" | ||
#include "ResourceIdentifiers.hpp" | ||
#include "SoundEffectPlayer.hpp" | ||
#include <SFML/Graphics/RenderWindow.hpp> | ||
#include <SFML/System/Time.hpp> | ||
|
||
#include "StateStack.hpp" | ||
|
||
class Application { | ||
public: | ||
Application(); | ||
~Application(); | ||
void run(); | ||
|
||
private: | ||
void processInput(); | ||
void update(sf::Time dt); | ||
void render(); | ||
|
||
void registerStates(); | ||
State::Context initContext(); | ||
|
||
private: | ||
const sf::Time TimePerFrame = DEFAULT_TIME_PER_FRAME; | ||
|
||
sf::RenderWindow mWindow; | ||
TextureHolder mTextures; | ||
FontHolder mFonts; | ||
MusicPlayer mMusics; | ||
SoundEffectPlayer mSoundEffects; | ||
Player mPlayer; | ||
std::vector<int> mHighScores; | ||
StateStack mStateStack; | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#ifndef CHOOSE_MODE_STATE_HPP | ||
#define CHOOSE_MODE_STATE_HPP | ||
|
||
|
||
#include "Button.hpp" | ||
#include "State.hpp" | ||
|
||
class ChooseModeState : public State { | ||
public: | ||
ChooseModeState(StateStack& stack, Context context, int mode = 0); | ||
ChooseModeState(StateStack& stack, Context& context); | ||
|
||
virtual void draw(); | ||
virtual bool update(sf::Time dt); | ||
virtual void draw() override; | ||
virtual bool update(sf::Time dt) override; | ||
virtual bool handleEvent(const sf::Event& event); | ||
|
||
private: | ||
sf::Sprite mBackgroundSprite; | ||
Config::ChooseModeState::Mode mMode; | ||
}; | ||
|
||
#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
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 |
---|---|---|
@@ -1,6 +1,40 @@ | ||
#ifndef DIALOG_SKIN_HPP | ||
#define DIALOG_SKIN_HPP | ||
|
||
class DialogSkin {}; | ||
#include <array> | ||
|
||
#include "Animation.hpp" | ||
#include "Button.hpp" | ||
#include "Dialog.hpp" | ||
#include "Label.hpp" | ||
#include "State.hpp" | ||
|
||
class DialogSkin : public Dialog { | ||
public: | ||
DialogSkin(const sf::Texture& texture, State::Context& context); | ||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) | ||
const override; | ||
virtual void handleEvent(const sf::Event& event); | ||
virtual void update(sf::Time dt) override; | ||
|
||
private: | ||
void addSkins( | ||
int skinNumber, sf::Vector2f position, sf::Vector2i frameSize, | ||
Textures::ID skin | ||
); | ||
void addChosenSkins( | ||
int skinNumber, sf::Vector2f position, sf::Vector2i frameSize, | ||
Textures::ID skin | ||
); | ||
void changeSkin(int skinNumber); | ||
|
||
private: | ||
const int mNumSkins = NUMBER_OF_SKINS; | ||
int mCurrentSkin; | ||
Button::Ptr mButtonLeft; | ||
Button::Ptr mButtonRight; | ||
std::array<Animation::Ptr, NUMBER_OF_SKINS> mSkins; | ||
std::array<Animation::Ptr, NUMBER_OF_SKINS> mChosenSkins; | ||
}; | ||
|
||
#endif |
Oops, something went wrong.