epr24pr42-ojanssen2/MovementNotPossible.h

24 lines
386 B
C
Raw Permalink Normal View History

2025-01-19 18:20:22 +01:00
#include "std_lib_inc.h"
2025-01-19 17:59:26 +01:00
#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