20 #include "../Engine/Surface.h" 32 enum WindowPopup { POPUP_NONE, POPUP_HORIZONTAL, POPUP_VERTICAL, POPUP_BOTH };
43 static const double POPUP_SPEED;
51 bool _contrast, _screen, _thinBorder;
53 static Sound *soundPopup[3];
55 Window(
State *state,
int width,
int height,
int x = 0,
int y = 0, WindowPopup
popup = POPUP_NONE);
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Box with a coloured border and custom background.
Definition: Window.h:40
Window(State *state, int width, int height, int x=0, int y=0, WindowPopup popup=POPUP_NONE)
Creates a new window with the specified size and position.
Definition: Window.cpp:43
Timer used to run code in fixed intervals.
Definition: Timer.h:35
void setColor(Uint8 color)
Sets the border color.
Definition: Window.cpp:87
Container for sound effects.
Definition: Sound.h:30
void setDY(int dy)
sets the Y delta.
Definition: Window.cpp:278
void draw()
Draws the window.
Definition: Window.cpp:163
void think()
Handles the timers.
Definition: Window.cpp:116
void setBackground(Surface *bg)
Sets the background surface.
Definition: Window.cpp:77
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
Uint8 getColor() const
Gets the border color.
Definition: Window.cpp:97
void popup()
Popups the window.
Definition: Window.cpp:130
~Window()
Cleans up the window.
Definition: Window.cpp:68
void setHighContrast(bool contrast)
Sets the high contrast color setting.
Definition: Window.cpp:107
void setDX(int dx)
sets the X delta.
Definition: Window.cpp:269
void setThinBorder()
Give this window a thin border.
Definition: Window.cpp:286
Definition: BaseInfoState.cpp:40