22 lines
361 B
C++
22 lines
361 B
C++
#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
|