zSelectorOwner Class Reference

#include <zSelector.h>

Inheritance diagram for zSelectorOwner:

Inheritance graph
[legend]
Collaboration diagram for zSelectorOwner:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zSelectorOwner ()
 zSelectorOwner (zSelectorOwner const &other)
void operator= (zSelectorOwner const &other)
 overloaded assignment operator
virtual zSelectorOwnercopy (void) const
virtual ~zSelectorOwner ()
gVectorExtra< ePlayerNetID * > select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer)

Static Public Member Functions

static zSelectorcreate ()


Detailed Description

Definition at line 203 of file zSelector.h.


Constructor & Destructor Documentation

zSelectorOwner::zSelectorOwner (  ) 

Definition at line 433 of file zSelector.cpp.

Referenced by copy(), and create().

00433                               :
00434         zSelector()
00435 { }

Here is the caller graph for this function:

zSelectorOwner::zSelectorOwner ( zSelectorOwner const &  other  ) 

Definition at line 437 of file zSelector.cpp.

00437                                                          :
00438         zSelector(other)
00439 { }

virtual zSelectorOwner::~zSelectorOwner (  )  [inline, virtual]

Definition at line 211 of file zSelector.h.

00211 {};


Member Function Documentation

zSelector * zSelectorOwner::create (  )  [static]

Reimplemented from zSelector.

Definition at line 428 of file zSelector.cpp.

References zSelectorOwner().

00429 {
00430     return new zSelectorOwner();
00431 }

Here is the call graph for this function:

void zSelectorOwner::operator= ( zSelectorOwner const &  other  ) 

overloaded assignment operator

Definition at line 441 of file zSelector.cpp.

References zSelector::operator=().

00442 {
00443     this->zSelector::operator=(other);
00444 }

Here is the call graph for this function:

zSelectorOwner * zSelectorOwner::copy ( void   )  const [virtual]

Reimplemented from zSelector.

Definition at line 446 of file zSelector.cpp.

References zSelectorOwner().

00447 {
00448     return new zSelectorOwner(*this);
00449 }

Here is the call graph for this function:

gVectorExtra< ePlayerNetID * > zSelectorOwner::select ( gVectorExtra< nNetObjectID > &  owners,
gVectorExtra< nNetObjectID > &  teamOwners,
gCycle triggerer 
) [virtual]

Reimplemented from zSelector.

Definition at line 451 of file zSelector.cpp.

References sn_netObjects.

00452 {
00453     // The owner of the Zone receives the effect upon trigger,
00454     // irrelevantly of the user who triggers it.
00455     gVectorExtra<ePlayerNetID *> owningPlayers;
00456 
00457     for(gVectorExtra< nNetObjectID >::const_iterator iter=owners.begin();
00458             iter!=owners.end();
00459             ++iter) {
00460         // Is the object still there
00461         if(bool(sn_netObjects[(*iter)]))
00462         {
00463             ePlayerNetID * anOwner = static_cast< ePlayerNetID* >( static_cast< nNetObject* >( sn_netObjects[ (*iter) ] ) ) ;
00464             if(anOwner != 0)
00465                 owningPlayers.push_back( anOwner );
00466         }
00467     }
00468     return owningPlayers;
00469 }


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:01:58 2008 for Armagetron Advanced by  doxygen 1.5.4