![]() |
Liberi
An exergame built for kids with CP!
|
Information about a minigame team. More...
Public Member Functions | |
| Color | GetSlotColor (int slotIndex) |
| Gets the slot color of the player slot with the given slot index. More... | |
| T[] | GetPlayerAvatarComponents< T > () |
| Gets an array containing the components of type T on all player avatars (humans and bots). More... | |
| T[] | GetHumanAvatarComponents< T > () |
| Gets an array containing the components of type T on all human player avatars. More... | |
| T[] | GetBotAvatarComponents< T > () |
| Gets an array containing the components of type T on all bot player avatars. More... | |
| int | GetPlayerSlotIndex (MinigamePlayer player) |
| Gets the slot index of the given player. More... | |
| MinigamePlayer | GetPlayer (int slotIndex) |
| Gets the player in the player slot with the given slot index. More... | |
| Transform | GetSpawnPoint (int slotIndex) |
| Gets the spawn point for the player slot at the given slot index. More... | |
Public Attributes | |
| string | ID = "players" |
| The ID of this team. More... | |
| int | MaxPlayers = 10 |
| The maximum player capacity of this team (humans and bots). More... | |
| GameObject | AvatarPrefab |
| The prefab to use for player avatars on this team. More... | |
| Transform[] | SpawnPoints |
| The array of spawn points to use for player avatars on this team. More... | |
| Color | TeamColor = Color.white |
| The official color of this team. Usage depends on interpretation. More... | |
| Color[] | SlotColors = new Color[] { Color.white } |
| The player slot colors of this team. Usage depends on interpretation. More... | |
Properties | |
| int | TeamIndex [get] |
| Gets the index of this team within all available teams in this minigame. More... | |
| MinigamePlayer[] | PlayerSlots [get] |
| Gets all player slots of this team. Null elements represent unoccupied slots. More... | |
| int | NumPlayers [get] |
| Gets the number of players in this team (humans and bots). More... | |
| int | NumHumanPlayers [get] |
| Gets the number of human players in this team. More... | |
| int | NumBotPlayers [get] |
| Gets the number of bot players in this team. More... | |
| int | NumEmptySlots [get] |
| Gets the number of unoccupied player slots in this team. More... | |
| MinigamePlayer[] | Players [get] |
| Gets an array containing all players in this team (humans and bots). More... | |
| MinigamePlayer[] | HumanPlayers [get] |
| Gets an array containing all human players in this team. More... | |
| MinigamePlayer[] | BotPlayers [get] |
| Gets an array containing all bot players in this team. More... | |
| MinigamePlayer[] | EmptySlots [get] |
| Gets an array containing all unoccupied player slots in this team. More... | |
| int[] | PlayerSlotIndices [get] |
| Gets an array containing the indices of all occupied player slots (whether by humans or bots) in this team. More... | |
| int[] | HumanPlayerSlotIndices [get] |
| Gets an array containing the indices of all player slots occupied by human players in this team. More... | |
| int[] | BotPlayerSlotIndices [get] |
| Gets an array containing the indices of all player slots occupied by bot players in this team. More... | |
| int[] | EmptySlotIndices [get] |
| Gets an array containing the indices of all unoccupied player slots in this team. More... | |
| int[] | HumanPlayerPeerIndices [get] |
| Gets an array containing the peer indices of all human players in this team. More... | |
| GameObject[] | PlayerAvatars [get] |
| Gets an array containing the avatars of all players in this team (humans and bots). More... | |
| GameObject[] | HumanAvatars [get] |
| Gets an array containing the avatars of all human players in this team. More... | |
| GameObject[] | BotAvatars [get] |
| Gets an array containing the avatars of all bot players in this team. More... | |
| string[] | HumanPlayerIDs [get] |
| Gets an array containing the player IDs of all human players in this team. More... | |
| PlayerProfile[] | HumanPlayerProfiles [get] |
| Gets an array containing the profiles of all human players in this team. More... | |
| string[] | HumanPlayerNicknames [get] |
| Gets an array containing the nicknames of all human players in this team. More... | |
| bool | IsFull [get] |
| Gets whether or not this team is full of players (humans and bots). More... | |
| bool | IsFullOfHumans [get] |
| Gets whether or not this team is full of human players. More... | |
| int | FirstEmptySlotIndex [get] |
| Gets the slot index of the first unoccupied player slot. More... | |
Information about a minigame team.
Definition at line 13 of file MinigameTeam.cs.
|
inline |
Gets an array containing the components of type T on all bot player avatars.
| T | : | Component |
Definition at line 290 of file MinigameTeam.cs.
|
inline |
Gets an array containing the components of type T on all human player avatars.
| T | : | Component |
Definition at line 282 of file MinigameTeam.cs.
|
inline |
Gets the player in the player slot with the given slot index.
Definition at line 315 of file MinigameTeam.cs.
|
inline |
Gets an array containing the components of type T on all player avatars (humans and bots).
| T | : | Component |
Definition at line 274 of file MinigameTeam.cs.
|
inline |
Gets the slot index of the given player.
Definition at line 307 of file MinigameTeam.cs.
|
inline |
Gets the slot color of the player slot with the given slot index.
Definition at line 262 of file MinigameTeam.cs.
|
inline |
Gets the spawn point for the player slot at the given slot index.
Definition at line 353 of file MinigameTeam.cs.
| GameObject MinigameTeam.AvatarPrefab |
The prefab to use for player avatars on this team.
Definition at line 238 of file MinigameTeam.cs.
| string MinigameTeam.ID = "players" |
The ID of this team.
Definition at line 230 of file MinigameTeam.cs.
| int MinigameTeam.MaxPlayers = 10 |
The maximum player capacity of this team (humans and bots).
Definition at line 234 of file MinigameTeam.cs.
| Color [] MinigameTeam.SlotColors = new Color[] { Color.white } |
The player slot colors of this team. Usage depends on interpretation.
Definition at line 250 of file MinigameTeam.cs.
| Transform [] MinigameTeam.SpawnPoints |
The array of spawn points to use for player avatars on this team.
Definition at line 242 of file MinigameTeam.cs.
| Color MinigameTeam.TeamColor = Color.white |
The official color of this team. Usage depends on interpretation.
Definition at line 246 of file MinigameTeam.cs.
|
get |
Gets an array containing the avatars of all bot players in this team.
Definition at line 166 of file MinigameTeam.cs.
|
get |
Gets an array containing all bot players in this team.
Definition at line 83 of file MinigameTeam.cs.
|
get |
Gets an array containing the indices of all player slots occupied by bot players in this team.
Definition at line 115 of file MinigameTeam.cs.
|
get |
Gets an array containing the indices of all unoccupied player slots in this team.
Definition at line 123 of file MinigameTeam.cs.
|
get |
Gets an array containing all unoccupied player slots in this team.
Definition at line 91 of file MinigameTeam.cs.
|
get |
Gets the slot index of the first unoccupied player slot.
Definition at line 214 of file MinigameTeam.cs.
|
get |
Gets an array containing the avatars of all human players in this team.
Definition at line 158 of file MinigameTeam.cs.
|
get |
Gets an array containing the player IDs of all human players in this team.
Definition at line 174 of file MinigameTeam.cs.
|
get |
Gets an array containing the nicknames of all human players in this team.
Definition at line 190 of file MinigameTeam.cs.
|
get |
Gets an array containing the peer indices of all human players in this team.
Definition at line 142 of file MinigameTeam.cs.
|
get |
Gets an array containing the profiles of all human players in this team.
Definition at line 182 of file MinigameTeam.cs.
|
get |
Gets an array containing all human players in this team.
Definition at line 75 of file MinigameTeam.cs.
|
get |
Gets an array containing the indices of all player slots occupied by human players in this team.
Definition at line 107 of file MinigameTeam.cs.
|
get |
Gets whether or not this team is full of players (humans and bots).
Definition at line 198 of file MinigameTeam.cs.
|
get |
Gets whether or not this team is full of human players.
Definition at line 206 of file MinigameTeam.cs.
|
get |
Gets the number of bot players in this team.
Definition at line 51 of file MinigameTeam.cs.
|
get |
Gets the number of unoccupied player slots in this team.
Definition at line 59 of file MinigameTeam.cs.
|
get |
Gets the number of human players in this team.
Definition at line 43 of file MinigameTeam.cs.
|
get |
Gets the number of players in this team (humans and bots).
Definition at line 35 of file MinigameTeam.cs.
|
get |
Gets an array containing the avatars of all players in this team (humans and bots).
Definition at line 150 of file MinigameTeam.cs.
|
get |
Gets an array containing all players in this team (humans and bots).
Definition at line 67 of file MinigameTeam.cs.
|
get |
Gets an array containing the indices of all occupied player slots (whether by humans or bots) in this team.
Definition at line 99 of file MinigameTeam.cs.
|
get |
Gets all player slots of this team. Null elements represent unoccupied slots.
Definition at line 27 of file MinigameTeam.cs.
|
get |
Gets the index of this team within all available teams in this minigame.
Definition at line 19 of file MinigameTeam.cs.