1#include "../Header files/Precompile.h"
2#include "../Header files/Menu.h"
3#include "../Header files/El Octavo-Functions.h"
4#include "../Header files/Additional Functions.h"
34 cout <<
"Error" << endl;
47 for (
int i = 0; i < 2; i++)
79 case Event::MouseButtonPressed:
143 for (
int i = 0; i < 2; i++)
178 case Event::MouseButtonPressed:
void addIcon(RenderWindow &window)
void backstory(RenderWindow &window, Texture backstoryTexture, Sprite backstoryImage)
void setup(RenderWindow &window)
Defines a system event and its parameters.
MouseButtonEvent mouseButton
Mouse button event parameters (Event::MouseButtonPressed, Event::MouseButtonReleased)
KeyEvent key
Key event parameters (Event::KeyPressed, Event::KeyReleased)
EventType type
Type of the event.
Streamed music played from an audio file.
bool openFromFile(const std::string &filename)
Open a music from an audio file.
void draw(const Drawable &drawable, const RenderStates &states=RenderStates::Default)
Draw a drawable object to the render target.
Window that can serve as a target for 2D drawing.
virtual Vector2u getSize() const
Get the size of the rendering region of the window.
void stop()
Stop playing the audio stream.
void setLoop(bool loop)
Set whether or not the stream should loop after reaching the end.
void play()
Start or resume playing the audio stream.
Drawable representation of a texture, with its own transformations, color, etc.
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the sprite.
Image living on the graphics card that can be used for drawing.
bool loadFromFile(const std::string &filename, const IntRect &area=IntRect())
Load the texture from a file on disk.
T x
X coordinate of the vector.
T y
Y coordinate of the vector.
bool pollEvent(Event &event)
Pop the event on top of the event queue, if any, and return it.
void close()
Close the window and destroy all the attached resources.
void display()
Display on screen what has been rendered to the window so far.
bool isOpen() const
Tell whether or not the window is open.
Sprite checkButtonImage[2]
Texture checkButtonTexture
bool setPositionByDefault
Keyboard::Key code
Code of the key that has been pressed.