Managers.TeamManager Class
Use this class together with PlayerManager.
You may sometimes want to create teams in your game, so that some players are team mates.
A player can only belong to a single team.
Item Index
Methods
Properties
Methods
getPlayers
(
Utils.Bag
-
team
Parameters:
-
team
StringName of the team
Returns:
Utils.Bag:
Bag of players
getTeam
(
String
-
player
Parameters:
-
player
StringName of the player
Returns:
String:
initialize
()
removeFromTeam
(
-
player
Parameters:
-
player
StringName of the player
setTeam
(
-
player
-
team
Set team to a player
Parameters:
-
player
StringName of the player
-
team
StringName of the team