gDeathZoneHack Class Reference

death zone: kills players who enter More...

#include <gWinZone.h>

Inheritance diagram for gDeathZoneHack:

Inheritance graph
[legend]
Collaboration diagram for gDeathZoneHack:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 gDeathZoneHack (eGrid *grid, const eCoord &pos)
 local constructor
 gDeathZoneHack (nMessage &m)
 network constructor
 ~gDeathZoneHack ()
 destructor

Private Member Functions

virtual void OnEnter (gCycle *target, REAL time)
 reacts on objects inside the zone (kills them)


Detailed Description

death zone: kills players who enter

Definition at line 133 of file gWinZone.h.


Constructor & Destructor Documentation

gDeathZoneHack::gDeathZoneHack ( eGrid grid,
const eCoord &  pos 
)

local constructor

Parameters:
grid Grid to put the zone into
pos Position to spawn the zone at

Definition at line 661 of file gWinZone.cpp.

References tColor::b_, gZone::color_, tColor::g_, and tColor::r_.

00662         :gZone( grid, pos )
00663 {
00664     color_.r_ = 1.0f;
00665     color_.g_ = 0.0f;
00666     color_.b_ = 0.0f;
00667 }

gDeathZoneHack::gDeathZoneHack ( nMessage m  ) 

network constructor

Parameters:
m Message to read creation data from
null 

Definition at line 680 of file gWinZone.cpp.

00681         : gZone( m )
00682 {
00683 }

gDeathZoneHack::~gDeathZoneHack ( void   ) 

destructor

Definition at line 694 of file gWinZone.cpp.

00695 {
00696 }


Member Function Documentation

void gDeathZoneHack::OnEnter ( gCycle target,
REAL  time 
) [private, virtual]

reacts on objects inside the zone (kills them)

Parameters:
target the cycle that has been found inside the zone
time the current time

Reimplemented from gZone.

Definition at line 712 of file gWinZone.cpp.

References ePlayerNetID::AddScore(), gCycle::Kill(), eNetGameObject::Player(), and score_deathzone.

00713 {
00714     target->Player()->AddScore(score_deathzone, tOutput(), "$player_lose_suicide");
00715     target->Kill();
00716 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:38:52 2008 for Armagetron Advanced by  doxygen 1.5.4