#include <zValidator.h>
Public Member Functions | |
zValidatorOwnerTeam (Triad _positive, Triad _marked) | |
zValidatorOwnerTeam (zValidatorOwnerTeam const &other) | |
void | operator= (zValidatorOwnerTeam const &other) |
overloaded assignment operator | |
virtual | ~zValidatorOwnerTeam () |
zValidator * | copy (void) const |
Static Public Member Functions | |
static zValidator * | create (Triad _positive, Triad _marked) |
Protected Member Functions | |
bool | isValid (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *possibleUser) |
Definition at line 128 of file zValidator.h.
Definition at line 187 of file zValidator.cpp.
Referenced by copy(), and create().
00187 : 00188 zValidator(_positive, _marked) 00189 { }
zValidatorOwnerTeam::zValidatorOwnerTeam | ( | zValidatorOwnerTeam const & | other | ) |
virtual zValidatorOwnerTeam::~zValidatorOwnerTeam | ( | ) | [inline, virtual] |
zValidator * zValidatorOwnerTeam::create | ( | Triad | _positive, | |
Triad | _marked | |||
) | [static] |
Reimplemented from zValidator.
Definition at line 182 of file zValidator.cpp.
References zValidatorOwnerTeam().
00183 { 00184 return new zValidatorOwnerTeam(_positive, _marked); 00185 }
void zValidatorOwnerTeam::operator= | ( | zValidatorOwnerTeam const & | other | ) |
overloaded assignment operator
Definition at line 195 of file zValidator.cpp.
References zValidator::operator=().
00196 { 00197 this->zValidator::operator=(other); 00198 }
zValidator * zValidatorOwnerTeam::copy | ( | void | ) | const [virtual] |
Reimplemented from zValidator.
Definition at line 200 of file zValidator.cpp.
References zValidatorOwnerTeam().
00200 { 00201 return new zValidatorOwnerTeam(*this); 00202 }
bool zValidatorOwnerTeam::isValid | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | possibleUser | |||
) | [protected, virtual] |
Reimplemented from zValidator.
Definition at line 205 of file zValidator.cpp.
References ePlayerNetID::CurrentTeam(), zValidator::isTeamOwner(), and eNetGameObject::Player().
00206 { 00207 return isTeamOwner(possibleUser->Player()->CurrentTeam(), teamOwners); 00208 }