#include <gWinZone.h>
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) |
Definition at line 133 of file gWinZone.h.
gDeathZoneHack::gDeathZoneHack | ( | eGrid * | grid, | |
const eCoord & | pos | |||
) |
local constructor
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
m | Message to read creation data from | |
null |
Definition at line 680 of file gWinZone.cpp.
00681 : gZone( m ) 00682 { 00683 }
gDeathZoneHack::~gDeathZoneHack | ( | void | ) |
reacts on objects inside the zone (kills them)
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 }