Add Alot
This commit is contained in:
@@ -58,3 +58,6 @@ void SoundEffect::PauseAll() {
|
||||
void SoundEffect::ResumeAll() {
|
||||
Mix_Resume(-1);
|
||||
}
|
||||
bool SoundEffect::IsPlaying() const {
|
||||
return Mix_Playing(m_Channel);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ public:
|
||||
static void PauseAll( );
|
||||
static void ResumeAll( );
|
||||
|
||||
bool IsPlaying() const;
|
||||
|
||||
private:
|
||||
Mix_Chunk* m_pMixChunk;
|
||||
int m_Channel;
|
||||
|
||||
@@ -31,3 +31,6 @@ void Text::ChangeText(const std::string& text) {
|
||||
std::cout << "This is wierd??: " << m_Text << std::endl;
|
||||
}
|
||||
}
|
||||
std::string Text::GetText() {
|
||||
return m_Text;
|
||||
}
|
||||
|
||||
@@ -11,11 +11,15 @@ public:
|
||||
Text() = default;
|
||||
~Text();
|
||||
|
||||
Text(const Text& other) = delete;
|
||||
Text(Text&& other) = delete;
|
||||
Text& operator=(const Text& other) = delete;
|
||||
Text& operator=(Text&& other) = delete;
|
||||
|
||||
void Draw(const Vector2f& pos) const;
|
||||
|
||||
void ChangeText(const std::string& text);
|
||||
|
||||
|
||||
std::string GetText();
|
||||
|
||||
private:
|
||||
std::string m_Text;
|
||||
|
||||
@@ -15,4 +15,6 @@ namespace Colors
|
||||
const Color4f CYAN{ 0.0f, 1.0f, 1.0f, 1.0f };
|
||||
const Color4f PINK{ 1.0f, 0.0f, 0.5f, 1.0f };
|
||||
const Color4f ORANGE{ 1.0f, 0.5f, 0.0f, 1.0f };
|
||||
const Color4f GRAY{ 0.5f, 0.5f, 0.5f, 1.0f};
|
||||
const Color4f LIGHTGRAY{ 0.8f, 0.8f, 0.8f, 1.0f};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user