forked from University/epr24pr42-ojanssen2
24 lines
389 B
C
24 lines
389 B
C
|
#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
|