Robot Devastation
NetworkEventListener.hpp
1 // Authors: see AUTHORS.md at project root.
2 // CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
3 // URL: https://github.com/asrob-uc3m/robotDevastation
4 
5 #ifndef __RD_NETWORK_EVENT_LISTENER_HPP__
6 #define __RD_NETWORK_EVENT_LISTENER_HPP__
7 
8 #include <vector>
9 #include "Player.hpp"
10 
11 namespace rd{
12 
19 {
20  public:
21  virtual bool onDataArrived(const std::vector<Player> & players) = 0;
22 
23  virtual ~NetworkEventListener() {}
24 };
25 
26 }
27 
28 #endif //-- __RD_NETWORK_EVENT_LISTENER_HPP__
rd
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
rd::NetworkEventListener
Interface for objects that can be notified of input events by the NetworkManager.
Definition: NetworkEventListener.hpp:18