#include <zValidator.h>
Public Member Functions | |
zValidatorAllButTeamOwner (Triad _positive, Triad _marked) | |
zValidatorAllButTeamOwner (zValidatorAllButTeamOwner const &other) | |
void | operator= (zValidatorAllButTeamOwner const &other) |
overloaded assignment operator | |
virtual | ~zValidatorAllButTeamOwner () |
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 154 of file zValidator.h.
Definition at line 249 of file zValidator.cpp.
Referenced by copy(), and create().
00249 : 00250 zValidator(_positive, _marked) 00251 { }
zValidatorAllButTeamOwner::zValidatorAllButTeamOwner | ( | zValidatorAllButTeamOwner const & | other | ) |
virtual zValidatorAllButTeamOwner::~zValidatorAllButTeamOwner | ( | ) | [inline, virtual] |
zValidator * zValidatorAllButTeamOwner::create | ( | Triad | _positive, | |
Triad | _marked | |||
) | [static] |
Reimplemented from zValidator.
Definition at line 244 of file zValidator.cpp.
References zValidatorAllButTeamOwner().
00245 { 00246 return new zValidatorAllButTeamOwner(_positive, _marked); 00247 }
void zValidatorAllButTeamOwner::operator= | ( | zValidatorAllButTeamOwner const & | other | ) |
overloaded assignment operator
Definition at line 257 of file zValidator.cpp.
References zValidator::operator=().
00258 { 00259 this->zValidator::operator=(other); 00260 }
zValidator * zValidatorAllButTeamOwner::copy | ( | void | ) | const [virtual] |
Reimplemented from zValidator.
Definition at line 262 of file zValidator.cpp.
References zValidatorAllButTeamOwner().
00262 { 00263 return new zValidatorAllButTeamOwner(*this); 00264 }
bool zValidatorAllButTeamOwner::isValid | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | possibleUser | |||
) | [protected, virtual] |
Reimplemented from zValidator.
Definition at line 267 of file zValidator.cpp.
References ePlayerNetID::CurrentTeam(), zValidator::isTeamOwner(), and eNetGameObject::Player().
00268 { 00269 return !isTeamOwner(possibleUser->Player()->CurrentTeam(), teamOwners); 00270 }