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

Public Member Functions

 Teleport (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team, std::shared_ptr< gameModel::Player > target)
 
auto execute () const -> gameController::ActionCheckResult override
 
bool isPossible () const override
 
- Public Member Functions inherited from gameController::Interference
 Interference (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team, gameModel::InterferenceType type)
 
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::Teleport::execute ( ) const -> gameController::ActionCheckResult
overridevirtual

Teleports target player to random free location on the field

Returns
see Interference::execute

Implements gameController::Interference.

bool gameController::Teleport::isPossible ( ) const
overridevirtual

Checks if Interference is possible

Returns
true if available an target Player on field

Reimplemented from gameController::Interference.


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