Robot Devastation
Public Member Functions | List of all members
rd::MentalMapEventListener Class Referenceabstract

Interface for objects that can be notified of events related to changes on the data stored. More...

#include <MentalMapEventListener.hpp>

Inheritance diagram for rd::MentalMapEventListener:
rd::NetworkManager rd::MockNetworkManager rd::YarpNetworkManager rd::test::YarpNetworkManagerNoKeepAlive

Public Member Functions

virtual bool onTargetHit (const Target &target, const Player &player, const Weapon &weapon)=0
 This function will be called whenever a target is hit. More...
 
virtual bool onRespawn (const Player &player)=0
 This function will be called whenever the player is respawned. More...
 

Detailed Description

MentalMapEventListener follows the observer design pattern.

Member Function Documentation

◆ onRespawn()

virtual bool rd::MentalMapEventListener::onRespawn ( const Player player)
pure virtual
Parameters
playerPlayer to respawn

Implemented in rd::NetworkManager.

◆ onTargetHit()

virtual bool rd::MentalMapEventListener::onTargetHit ( const Target target,
const Player player,
const Weapon weapon 
)
pure virtual
Parameters
targetTarget that was hit
playerPlayer corresponding to the target hit
weaponWeapon used to hit the target

Implemented in rd::NetworkManager.


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