Orxonox  0.0.5 Codename: Arcturus
PickupListener.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist
3  * > www.orxonox.net <
4  *
5  *
6  * License notice:
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Author:
23  * Damian 'Mozork' Frick
24  * Co-authors:
25  * ...
26  *
27 */
28 
36 #ifndef _PickupListener_H__
37 #define _PickupListener_H__
38 
39 #include "Pickupable.h"
40 
42 
43 namespace orxonox
44 {
45 
58  {
59  public:
61  virtual ~PickupListener();
62 
63  static void broadcastPickupChangedUsed(Pickupable* pickup, bool used);
64  static void broadcastPickupChangedPickedUp(Pickupable* pickup, bool pickedUp);
65 
71  virtual void pickupChangedUsed(Pickupable* pickup, bool used) {}
77  virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) {}
78  };
79 
80 }
81 
82 #endif // _PickupListener_H__
virtual void pickupChangedPickedUp(Pickupable *pickup, bool pickedUp)
Method that can be overloaded by any PickupListener to be notified of a change in the pickedUp status...
Definition: PickupListener.h:77
An Interface (or more precisely an abstract class) to model and represent different (all kinds of) pi...
Definition: Pickupable.h:60
This is the class from which all interfaces of the game-logic (not the engine) are derived from...
Definition: OrxonoxInterface.h:50
virtual void pickupChangedUsed(Pickupable *pickup, bool used)
Method that can be overloaded by any PickupListener to be notified of a change in the used status of ...
Definition: PickupListener.h:71
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Declaration of OrxonoxInterface, the base class of all interfaces in Orxonox.
The PickupListener class facilitates the flow of information regarding the picking up...
Definition: PickupListener.h:57
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Definition of the Pickupable class.