Robot Devastation
|
Interface for objects that can be notified of events related to changes on the data stored. More...
#include <MentalMapEventListener.hpp>
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... | |
MentalMapEventListener follows the observer design pattern.
|
pure virtual |
player | Player to respawn |
Implemented in rd::NetworkManager.
|
pure virtual |
target | Target that was hit |
player | Player corresponding to the target hit |
weapon | Weapon used to hit the target |
Implemented in rd::NetworkManager.