Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/kill.h @ 7484

Last change on this file since 7484 was 7482, checked in by patrick, 19 years ago

orxonox: working on kill event processing (game rule specific)

File size: 937 bytes
Line 
1/*!
2 * @file kill.h
3 * @brief Definition of a playable kill. Generated in the case when some playable dies
4*/
5
6#ifndef _KILL_H
7#define _KILL_H
8
9#include "base_object.h"
10
11// FORWARD DECLARATION
12
13class WorldEntity;
14class Playable;
15
16//! A representing a kill event
17class Kill : public BaseObject
18{
19
20  public:
21    Kill(WorldEntity* killer, WorldEntity* victim);
22    Kill(WorldEntity* killer, Playable* victim);
23    virtual ~Kill();
24
25    /** @returns reference to the killer world entity, does not need to exist */
26    inline WorldEntity* getKiller() { return this->killer; }
27    /** @returns reference to the victim world entity, does not need to exist */
28    inline WorldEntity* getVictim() { return this->victim; }
29
30  private:
31    WorldEntity*         killer;                   //!< reference to the killer world entity
32    WorldEntity*         victim;                   //!< reference to the victim world entity
33
34};
35
36#endif /* _KILL_H */
Note: See TracBrowser for help on using the repository browser.