GameLogic
 All Data Structures Files Functions Variables Friends
Public Member Functions
gameController::Impulse Class Reference
Inheritance diagram for gameController::Impulse:
gameController::Interference

Public Member Functions

 Impulse (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team)
 
auto execute () const -> gameController::ActionCheckResult override
 
- Public Member Functions inherited from gameController::Interference
 Interference (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team, gameModel::InterferenceType type)
 
virtual bool isPossible () const
 
auto getType () const -> gameModel::InterferenceType
 

Additional Inherited Members

- Protected Attributes inherited from gameController::Interference
std::shared_ptr
< gameModel::Environment
env
 
std::shared_ptr< gameModel::Teamteam
 
gameModel::InterferenceType type
 

Member Function Documentation

auto gameController::Impulse::execute ( ) const -> gameController::ActionCheckResult
overridevirtual

If a Keeper or Chaser holds the quaffle, quaffle is moved to a random free adjacent position

Returns
see Interference::execute

Implements gameController::Interference.


The documentation for this class was generated from the following files: