Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/kill.cc @ 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: 958 bytes
RevLine 
[7482]1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Patrick Boenzli
13*/
14
15//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
16
17#include "kill.h"
18
19#include "world_entity.h"
20
21using namespace std;
22
23
24/**
25 * standard constructor
26 */
27Kill::Kill (WorldEntity* killer, WorldEntity* victim)
28{
29  this->setClassID(CL_KILL, "Kill");
30
31  this->killer = killer;
32  this->victim = victim;
33}
34
35
36/**
37 * standard constructor
38 */
39Kill::Kill (WorldEntity* killer, Playable* victim)
40{
41  this->setClassID(CL_KILL, "Kill");
42
43  this->killer = killer;
44  this->victim = (WorldEntity*)victim;
45}
46
47
48/**
49 * standard deconstructor
50*/
51Kill::~Kill ()
52{
53  // delete what has to be deleted here
54}
Note: See TracBrowser for help on using the repository browser.