big bang v2

This commit is contained in:
moonleay 2025-01-19 17:59:26 +01:00
parent d48e9d7b28
commit 27589cc385
Signed by: moonleay
GPG key ID: 82667543CCD715FB
18 changed files with 2847 additions and 378 deletions

View file

@ -0,0 +1,23 @@
#include "../std_lib_inc.h"
#ifndef MALFORMEDMAZE_H
#define MALFORMEDMAZE_H
namespace game_exceptions
{
class MalformedMaze
{
string why;
public:
MalformedMaze(string why): why(why)
{
}
string what()
{
return this->why;
}
};
} // game_exceptions
#endif //MALFORMEDMAZE_H

View file

@ -0,0 +1,23 @@
#include "../std_lib_inc.h"
#ifndef MOVEMENTNOTPOSSIBLE_H
#define MOVEMENTNOTPOSSIBLE_H
namespace game_exceptions
{
class MovementNotPossible
{
string why;
public:
MovementNotPossible(string why): why(why)
{
}
string what()
{
return this->why;
}
};
} // game_exceptions
#endif //MOVEMENTNOTPOSSIBLE_H

23
Exceptions/UnkownAction.h Normal file
View file

@ -0,0 +1,23 @@
#include "../std_lib_inc.h"
#ifndef UNKOWNACTION_H
#define UNKOWNACTION_H
namespace game_exceptions
{
class UnkownAction
{
string why;
public:
UnkownAction(string why): why(why)
{
}
string what()
{
return this->why;
}
};
} // game_exceptions
#endif //UNKOWNACTION_H