Planeshift
deathcallback.h
Go to the documentation of this file.
1 /*
2  * deathcallback.h - author Michael Cummings <cummings.michael@gmail.com>
3  *
4  * Copyright (C) 2007 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef __DEATHCALLBACK_H__
21 #define __DEATHCALLBACK_H__
22 
23 class iDeathCallback;
24 
25 
27 {
28 public:
29  virtual void RegisterCallback(iDeathCallback* receiver) = 0;
30  virtual void UnregisterCallback(iDeathCallback* receiver) = 0;
32 };
33 
34 
43 {
44 public:
45  virtual void DeathCallback(iDeathNotificationObject* object)=0;
46  virtual ~iDeathCallback() {}
47 };
48 
49 
50 
51 #endif
virtual ~iDeathNotificationObject()
Definition: deathcallback.h:31
virtual void RegisterCallback(iDeathCallback *receiver)=0
virtual ~iDeathCallback()
Definition: deathcallback.h:46
virtual void UnregisterCallback(iDeathCallback *receiver)=0
This class generically allows objects to be notified when a gemActor dies.
Definition: deathcallback.h:42