Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

MultiplayerUser

Represents a single Felgo Multiplayer user. More...

Import Statement: import Felgo 3.0
Since: Felgo 2.8.5
Inherits:

GameNetworkUser

Properties

Detailed Description

The MultiplayerUser is a special type of a GameNetworkUser for games using the multiplayer components.

Property Documentation

activeTurn : bool

Boolean property indicating if it is the user's turn or not during a multiplayer game session, false initially.


connected : bool

Boolean property indicating if the user is currently connected to a specific session or not, false initially.


enabled : bool

Boolean property indicating if it is this player slot is disabled, in which case no player can connect to this slot, false initially.

This property can only be changed when connected is false. If this slot has an invited player and enabled gets set to false, the invitation is removed.

Do not write to this property directly, use the FelgoMultiplayer::enablePlayer() and FelgoMultiplayer::disablePlayer() methods.


invited : bool

Boolean property indicating if the user has been invited or not, false initially.

Do not write to this property directly, use the FelgoMultiplayer::invitePlayers() and FelgoMultiplayer::uninvitePlayer() methods.


leader : bool

Boolean property indicating if the user is the leader of the current game or not, false initially.