Table of Contents

GEMPGameRules::CTeam

Class Description

<python> class CTeam:

int GetRoundScore()
None SetRoundScore( int score )
None IncrementRoundScore( int amount )
int GetMatchScore()
None SetMatchScore( int score )
None IncrementMatchScore( int amount )
None ResetMatchScore()
int GetNumPlayers()
int GetTeamNumber()
string GetName()

</python>

Description

description=Represents a team in the world. There are four distinct teams defined in GE:S which are Unassigned, Spectator, MI6, and Janus |version=Beta 4.0 |namespace=[[Python_GEMPGameRules|GEMPGameRules]] |inherits=None

Example Usage

<python> GEMPGameRules.GetTeam( GEGlobal.TEAM_JANUS ).IncrementRoundScore( 10 )

teamJ = GEMPGameRules.GetTeam( GEGlobal.TEAM_JANUS ) scoreJ = teamJ.GetRoundScore() + teamJ.GetMatchScore() </python>

Methods

GetRoundScore

purpose=Gets number of rounds won |params=None |returns=int

SetRoundScore

purpose=Sets number of rounds won |params=int |returns=None

IncrementRoundScore

purpose=Adds value to the team's round score. Can be negative to decrease score. |params=int |returns=None

GetMatchScore

purpose=Gets the team's score |params=None |returns=int

SetMatchScore

purpose=Sets the team's score |params=int |returns=None

IncrementMatchScore

purpose=Adds value to the team's match score. Can be negative to decrease score. |params=int |returns=None

ResetMatchScore

purpose=Resets team score to zero |params=None |returns=None

GetNumPlayers

purpose=Get's the number of players on the team |params=None |returns=int

GetTeamNumber

purpose=Gets the team's number (Corresponds to [[Python_GEGlobal#Team_Id_Numbers|global team numbers]]) |params=None |returns=int

GetName

purpose=Gets the team's name |params=None |returns=string