ge211
2021.5.1
A student game engine
|
|
3 #include "ge211_forward.hxx"
4 #include "ge211_noexcept.hxx"
14 namespace exceptions {
30 const char*
what()
const NOEXCEPT
override;
67 friend class detail::Session;
82 friend ::ge211::internal::Render_sprite;
131 friend ::ge211::internal::Render_sprite;
132 friend class detail::Renderer;
133 friend class detail::Texture;
143 friend class detail::File_resource;
146 friend struct detail::ifstream_opener;
219 Logger() NOEXCEPT = default;
239 template <
typename STREAM_INSERTABLE>
242 if (active_) message_ << value;
Log_message debug(std::string reason="")
Returns a debug-level log message.
A music track, which can be attached to the Mixer and played.
Log_message & operator=(const Log_message &)=delete
A Log_message cannot be copied, since that would cause it to print twice.
Log_message warn(std::string reason="")
Returns a warn-level log message.
Log_message(Log_message &&)=default
A log message can be moved.
Log_message info(std::string reason="")
Returns a info-level log message.
Indicates an error loading a font front an already-open file.
Log_level level() const
Returns the log level of this logger.
Thrown by member functions of internal::Render_sprite when the sprite has already been rendered to th...
Indicates an error loading an image from an already-open file.
The game engine namespace.
Log_message(const Log_message &)=delete
A Log_message cannot be copied, since that would cause it to print twice.
An exception thrown when the client attempts to perform an action that requires a GE211 session befor...
Common interface to classes that load audio data, Music_track and Sound_effect.
Provides access to the game window and its properties.
const std::string & attempted_action() const
The action that the client attempted that couldn't be completed without a GE211 session.
void level(Log_level level)
Changes the log level of this logger.
Indicates an error opening a file.
An exception that indicates that a logic error was performed by the client.
Right now a Logger just keeps track of the current log level.
Log_level
How serious is this log message?
Log_message & operator=(Log_message &&)=default
A log message can be move-assigned.
A Sprite that displays text.
Indicates a condition unexpected by ge211, that appears to break its invariants.
Log_message fatal(std::string reason="")
Returns a fatal-level log message.
Indicates that an error was encountered by the game engine or in the client's environment.
Log_message & operator<<(STREAM_INSERTABLE const &value)
Appends more text to this Log_message.
The entity that coordinates playing all audio tracks.
A sound effect track, which can be attached to a Mixer channel and played.
Indicates an error in the mixer, which could include the inability to understand an audio file format...
Represents a font that can be used to render a sprites::Text_sprite.
A Log_message accumulates information and then prints it all at once when it's about to be destroyed.
A Sprite that displays a bitmap image.
@ debug
extra debugging information
Indicates an exception from the host environment being passed along by ge211.
const char * what() const override
The error message associated with the exception.
static Logger & instance()
Returns the one and only logger instance.
The root of the ge211 exception hierarchy.