AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.PlayerListDelta Class Reference

Public Member Functions

 PlayerListDelta (List< String > playersRemoved, List< String > playersAdded)
 
List< String > getPlayersAdded ()
 
List< String > getPlayersRemoved ()
 

Static Public Attributes

static PlayerListDelta NO_CHANGE
 

Detailed Description

An object to store lists of the change in the players list of an instance.

Definition at line 17 of file PlayerListDelta.java.

Constructor & Destructor Documentation

◆ PlayerListDelta()

com.google.appinventor.components.runtime.util.PlayerListDelta.PlayerListDelta ( List< String >  playersRemoved,
List< String >  playersAdded 
)

Creates a PlayerListDelta with the specified player change lists.

Parameters
playersRemovedA list of the player id's of players that have left the game since the last update.
playersAddedA list of the player id's of players that have joined the game since the last update.

Definition at line 32 of file PlayerListDelta.java.

Member Function Documentation

◆ getPlayersAdded()

List<String> com.google.appinventor.components.runtime.util.PlayerListDelta.getPlayersAdded ( )

Get the list of players that have joined the instance since the last update.

Returns
A list of email addresses of new players.

Definition at line 42 of file PlayerListDelta.java.

◆ getPlayersRemoved()

List<String> com.google.appinventor.components.runtime.util.PlayerListDelta.getPlayersRemoved ( )

Get the list of players that have left the instance since the last update.

Returns
A list of email addresses of players that have left.

Definition at line 51 of file PlayerListDelta.java.

Member Data Documentation

◆ NO_CHANGE

PlayerListDelta com.google.appinventor.components.runtime.util.PlayerListDelta.NO_CHANGE
static
Initial value:
=
new PlayerListDelta(new ArrayList<String>(), new ArrayList<String>())

Definition at line 22 of file PlayerListDelta.java.


The documentation for this class was generated from the following file:
com.google.appinventor.components.runtime.util.PlayerListDelta.PlayerListDelta
PlayerListDelta(List< String > playersRemoved, List< String > playersAdded)
Definition: PlayerListDelta.java:32