MultiplayerUser

Represents a single V-Play Multiplayer user. More...

Import Statement: import VPlay 2.0
Since: V-Play 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 VPlayMultiplayer::enablePlayer() and VPlayMultiplayer::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 VPlayMultiplayer::invitePlayers() and VPlayMultiplayer::uninvitePlayer() methods.


leader : bool

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


Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support