RakNet::TeamSelection Struct Reference
[TeamManager]

Parameter to TM_World::ReferenceTeamMember(). More...

#include <TeamManager.h>

List of all members.

Static Public Member Functions

static TeamSelection AnyAvailable (void)
 Join any team that has available slots and is tagged with ALLOW_JOIN_ANY_AVAILABLE_TEAM.
static TeamSelection SpecificTeam (TM_Team *specificTeamToJoin)
 Join a specific team if it has available slots, and is tagged with JOIN_SPECIFIC_TEAMS.
static TeamSelection NoTeam (NoTeamId noTeamSubcategory)
 Do not join a team, or leave all current teams.


Detailed Description

Parameter to TM_World::ReferenceTeamMember().

Use TeamSelection::AnyAvailable(), TeamSelection::SpecificTeam(), or TeamSelection::NoTeam()


Member Function Documentation

static TeamSelection RakNet::TeamSelection::AnyAvailable ( void   )  [static]

Join any team that has available slots and is tagged with ALLOW_JOIN_ANY_AVAILABLE_TEAM.

ID_TEAM_BALANCER_TEAM_ASSIGNED, ID_TEAM_BALANCER_REQUESTED_TEAM_FULL, or ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED will be returned to all systems.

static TeamSelection RakNet::TeamSelection::NoTeam ( NoTeamId  noTeamSubcategory  )  [static]

Do not join a team, or leave all current teams.

This always succeeds. ID_TEAM_BALANCER_TEAM_ASSIGNED will be returned to all systems.

Parameters:
[in] noTeamSubcategory Even when not on a team, you can internally identify a subcategory of not being on a team, such as AI or spectator.

static TeamSelection RakNet::TeamSelection::SpecificTeam ( TM_Team specificTeamToJoin  )  [static]

Join a specific team if it has available slots, and is tagged with JOIN_SPECIFIC_TEAMS.

ID_TEAM_BALANCER_TEAM_ASSIGNED, ID_TEAM_BALANCER_REQUESTED_TEAM_FULL, or ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED will be returned to all systems.

Parameters:
[in] specificTeamToJoin Which team to attempt to join.


The documentation for this struct was generated from the following file:

Generated on Wed Apr 4 21:34:41 2012 for RakNet by  doxygen 1.5.7.1