epr24pr3_ojanssen2_dummed_d.../Exceptions/MovementNotPossible.h

26 lines
404 B
C++

//
// Created by moonleay on 12/17/24.
//
#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