Public Member Functions | |
Interference (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team, gameModel::InterferenceType type) | |
virtual auto | execute () const -> gameController::ActionCheckResult=0 |
virtual bool | isPossible () const |
auto | getType () const -> gameModel::InterferenceType |
Protected Attributes | |
std::shared_ptr < gameModel::Environment > | env |
std::shared_ptr< gameModel::Team > | team |
gameModel::InterferenceType | type |
|
pure virtual |
Executes the interference.
Implemented in gameController::BlockCell, gameController::SnitchPush, gameController::Impulse, gameController::RangedAttack, and gameController::Teleport.
auto gameController::Interference::getType | ( | ) | const -> gameModel::InterferenceType |
Gets the type of interference.
|
virtual |
Checks if the interference is possible
Reimplemented in gameController::BlockCell, gameController::RangedAttack, and gameController::Teleport.