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

Public Member Functions

 BlockCell (std::shared_ptr< gameModel::Environment > env, std::shared_ptr< gameModel::Team > team, gameModel::Position target)
 
bool isPossible () const override
 
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)
 
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::BlockCell::execute ( ) const -> gameController::ActionCheckResult
overridevirtual

Places CubeOfShit on target position

Returns
see Interference::execute

Implements gameController::Interference.

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

Checks if Interference is possible

Returns
true if this Interference is available and possible to place CubeOfShit on specified position

Reimplemented from gameController::Interference.


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