Difference between revisions of "Gaming"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <!-- GIDEROSOBJ:Gaming --> | ||
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/> | ||
'''<translate>Available since</translate>:''' Gideros 2012.09<br/> | '''<translate>Available since</translate>:''' Gideros 2012.09<br/> | ||
Line 16: | Line 17: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/Gaming.new|Gaming.new]] <br/> | + | [[Special:MyLanguage/Gaming.new|Gaming.new]] <br/><!-- GIDEROSMTD:Gaming.new --> |
− | [[Special:MyLanguage/Gaming:autoMatch|Gaming:autoMatch]] <br/> | + | [[Special:MyLanguage/Gaming:autoMatch|Gaming:autoMatch]] <br/><!-- GIDEROSMTD:Gaming:autoMatch --> |
− | [[Special:MyLanguage/Gaming:deleteState|Gaming:deleteState]] <br/> | + | [[Special:MyLanguage/Gaming:deleteState|Gaming:deleteState]] <br/><!-- GIDEROSMTD:Gaming:deleteState --> |
− | [[Special:MyLanguage/Gaming:getAllPlayers|Gaming:getAllPlayers]] <br/> | + | [[Special:MyLanguage/Gaming:getAllPlayers|Gaming:getAllPlayers]] <br/><!-- GIDEROSMTD:Gaming:getAllPlayers --> |
− | [[Special:MyLanguage/Gaming:getPlayerId|Gaming:getPlayerId]] <br/> | + | [[Special:MyLanguage/Gaming:getPlayerId|Gaming:getPlayerId]] <br/><!-- GIDEROSMTD:Gaming:getPlayerId --> |
− | [[Special:MyLanguage/Gaming:getPlayerInfo|Gaming:getPlayerInfo]] <br/> | + | [[Special:MyLanguage/Gaming:getPlayerInfo|Gaming:getPlayerInfo]] <br/><!-- GIDEROSMTD:Gaming:getPlayerInfo --> |
− | [[Special:MyLanguage/Gaming:getPlayerName|Gaming:getPlayerName]] <br/> | + | [[Special:MyLanguage/Gaming:getPlayerName|Gaming:getPlayerName]] <br/><!-- GIDEROSMTD:Gaming:getPlayerName --> |
− | [[Special:MyLanguage/Gaming:getPlayerPicture|Gaming:getPlayerPicture]] <br/> | + | [[Special:MyLanguage/Gaming:getPlayerPicture|Gaming:getPlayerPicture]] <br/><!-- GIDEROSMTD:Gaming:getPlayerPicture --> |
− | [[Special:MyLanguage/Gaming:getPlayerScore|Gaming:getPlayerScore]] <br/> | + | [[Special:MyLanguage/Gaming:getPlayerScore|Gaming:getPlayerScore]] <br/><!-- GIDEROSMTD:Gaming:getPlayerScore --> |
− | [[Special:MyLanguage/Gaming:incrementAchievement|Gaming:incrementAchievement]] <br/> | + | [[Special:MyLanguage/Gaming:incrementAchievement|Gaming:incrementAchievement]] <br/><!-- GIDEROSMTD:Gaming:incrementAchievement --> |
− | [[Special:MyLanguage/Gaming:invitePlayers|Gaming:invitePlayers]] <br/> | + | [[Special:MyLanguage/Gaming:invitePlayers|Gaming:invitePlayers]] <br/><!-- GIDEROSMTD:Gaming:invitePlayers --> |
− | [[Special:MyLanguage/Gaming:isLoggedIn|Gaming:isLoggedIn]] <br/> | + | [[Special:MyLanguage/Gaming:isLoggedIn|Gaming:isLoggedIn]] <br/><!-- GIDEROSMTD:Gaming:isLoggedIn --> |
− | [[Special:MyLanguage/Gaming:joinRoom|Gaming:joinRoom]] <br/> | + | [[Special:MyLanguage/Gaming:joinRoom|Gaming:joinRoom]] <br/><!-- GIDEROSMTD:Gaming:joinRoom --> |
− | [[Special:MyLanguage/Gaming:loadAchievements|Gaming:loadAchievements]] <br/> | + | [[Special:MyLanguage/Gaming:loadAchievements|Gaming:loadAchievements]] <br/><!-- GIDEROSMTD:Gaming:loadAchievements --> |
− | [[Special:MyLanguage/Gaming:loadPlayerCenteredScores|Gaming:loadPlayerCenteredScores]] <br/> | + | [[Special:MyLanguage/Gaming:loadPlayerCenteredScores|Gaming:loadPlayerCenteredScores]] <br/><!-- GIDEROSMTD:Gaming:loadPlayerCenteredScores --> |
− | [[Special:MyLanguage/Gaming:loadScores|Gaming:loadScores]] <br/> | + | [[Special:MyLanguage/Gaming:loadScores|Gaming:loadScores]] <br/><!-- GIDEROSMTD:Gaming:loadScores --> |
− | [[Special:MyLanguage/Gaming:loadState|Gaming:loadState]] <br/> | + | [[Special:MyLanguage/Gaming:loadState|Gaming:loadState]] <br/><!-- GIDEROSMTD:Gaming:loadState --> |
− | [[Special:MyLanguage/Gaming:login|Gaming:login]] <br/> | + | [[Special:MyLanguage/Gaming:login|Gaming:login]] <br/><!-- GIDEROSMTD:Gaming:login --> |
− | [[Special:MyLanguage/Gaming:logout|Gaming:logout]] <br/> | + | [[Special:MyLanguage/Gaming:logout|Gaming:logout]] <br/><!-- GIDEROSMTD:Gaming:logout --> |
− | [[Special:MyLanguage/Gaming:reportAchievement|Gaming:reportAchievement]] <br/> | + | [[Special:MyLanguage/Gaming:reportAchievement|Gaming:reportAchievement]] <br/><!-- GIDEROSMTD:Gaming:reportAchievement --> |
− | [[Special:MyLanguage/Gaming:reportScore|Gaming:reportScore]] <br/> | + | [[Special:MyLanguage/Gaming:reportScore|Gaming:reportScore]] <br/><!-- GIDEROSMTD:Gaming:reportScore --> |
− | [[Special:MyLanguage/Gaming:resolveState|Gaming:resolveState]] <br/> | + | [[Special:MyLanguage/Gaming:resolveState|Gaming:resolveState]] <br/><!-- GIDEROSMTD:Gaming:resolveState --> |
− | [[Special:MyLanguage/Gaming:revealAchievement|Gaming:revealAchievement]] <br/> | + | [[Special:MyLanguage/Gaming:revealAchievement|Gaming:revealAchievement]] <br/><!-- GIDEROSMTD:Gaming:revealAchievement --> |
− | [[Special:MyLanguage/Gaming:sendTo|Gaming:sendTo]] <br/> | + | [[Special:MyLanguage/Gaming:sendTo|Gaming:sendTo]] <br/><!-- GIDEROSMTD:Gaming:sendTo --> |
− | [[Special:MyLanguage/Gaming:sendToAll|Gaming:sendToAll]] <br/> | + | [[Special:MyLanguage/Gaming:sendToAll|Gaming:sendToAll]] <br/><!-- GIDEROSMTD:Gaming:sendToAll --> |
− | [[Special:MyLanguage/Gaming:showAchievements|Gaming:showAchievements]] <br/> | + | [[Special:MyLanguage/Gaming:showAchievements|Gaming:showAchievements]] <br/><!-- GIDEROSMTD:Gaming:showAchievements --> |
− | [[Special:MyLanguage/Gaming:showInvitations|Gaming:showInvitations]] <br/> | + | [[Special:MyLanguage/Gaming:showInvitations|Gaming:showInvitations]] <br/><!-- GIDEROSMTD:Gaming:showInvitations --> |
− | [[Special:MyLanguage/Gaming:showLeaderboard|Gaming:showLeaderboard]] <br/> | + | [[Special:MyLanguage/Gaming:showLeaderboard|Gaming:showLeaderboard]] <br/><!-- GIDEROSMTD:Gaming:showLeaderboard --> |
− | [[Special:MyLanguage/Gaming:showWaitingRoom|Gaming:showWaitingRoom]] <br/> | + | [[Special:MyLanguage/Gaming:showWaitingRoom|Gaming:showWaitingRoom]] <br/><!-- GIDEROSMTD:Gaming:showWaitingRoom --> |
− | [[Special:MyLanguage/Gaming:updateState|Gaming:updateState]] <br/> | + | [[Special:MyLanguage/Gaming:updateState|Gaming:updateState]] <br/><!-- GIDEROSMTD:Gaming:updateState --> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
− | [[Special:MyLanguage/Event.CONNECTED_TO_ROOM|Event.CONNECTED_TO_ROOM]]<br/> | + | [[Special:MyLanguage/Event.CONNECTED_TO_ROOM|Event.CONNECTED_TO_ROOM]]<br/><!-- GIDEROSEVT:Event.CONNECTED_TO_ROOM --> |
− | [[Special:MyLanguage/Event.DATA_RECEIVED|Event.DATA_RECEIVED]]<br/> | + | [[Special:MyLanguage/Event.DATA_RECEIVED|Event.DATA_RECEIVED]]<br/><!-- GIDEROSEVT:Event.DATA_RECEIVED --> |
− | [[Special:MyLanguage/Event.DISCONNECTED_FROM_ROOM|Event.DISCONNECTED_FROM_ROOM]]<br/> | + | [[Special:MyLanguage/Event.DISCONNECTED_FROM_ROOM|Event.DISCONNECTED_FROM_ROOM]]<br/><!-- GIDEROSEVT:Event.DISCONNECTED_FROM_ROOM --> |
− | [[Special:MyLanguage/Event.GAME_STARTED|Event.GAME_STARTED]]<br/> | + | [[Special:MyLanguage/Event.GAME_STARTED|Event.GAME_STARTED]]<br/><!-- GIDEROSEVT:Event.GAME_STARTED --> |
− | [[Special:MyLanguage/Event.INVITATION_RECEIVED|Event.INVITATION_RECEIVED]]<br/> | + | [[Special:MyLanguage/Event.INVITATION_RECEIVED|Event.INVITATION_RECEIVED]]<br/><!-- GIDEROSEVT:Event.INVITATION_RECEIVED --> |
− | [[Special:MyLanguage/Event.JOINED_ROOM|Event.JOINED_ROOM]]<br/> | + | [[Special:MyLanguage/Event.JOINED_ROOM|Event.JOINED_ROOM]]<br/><!-- GIDEROSEVT:Event.JOINED_ROOM --> |
− | [[Special:MyLanguage/Event.LEFT_ROOM|Event.LEFT_ROOM]]<br/> | + | [[Special:MyLanguage/Event.LEFT_ROOM|Event.LEFT_ROOM]]<br/><!-- GIDEROSEVT:Event.LEFT_ROOM --> |
− | [[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_COMPLETE|Event.LOAD_ACHIEVEMENTS_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_COMPLETE|Event.LOAD_ACHIEVEMENTS_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_COMPLETE --> |
− | [[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_ERROR|Event.LOAD_ACHIEVEMENTS_ERROR]]<br/> | + | [[Special:MyLanguage/Event.LOAD_ACHIEVEMENTS_ERROR|Event.LOAD_ACHIEVEMENTS_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_ACHIEVEMENTS_ERROR --> |
− | [[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_COMPLETE --> |
− | [[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]]<br/> | + | [[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]]<br/><!-- GIDEROSEVT:Event.LOAD_SCORES_ERROR --> |
− | [[Special:MyLanguage/Event.LOGIN_COMPLETE|Event.LOGIN_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.LOGIN_COMPLETE|Event.LOGIN_COMPLETE]]<br/><!-- GIDEROSEVT:Event.LOGIN_COMPLETE --> |
− | [[Special:MyLanguage/Event.LOGIN_ERROR|Event.LOGIN_ERROR]]<br/> | + | [[Special:MyLanguage/Event.LOGIN_ERROR|Event.LOGIN_ERROR]]<br/><!-- GIDEROSEVT:Event.LOGIN_ERROR --> |
− | [[Special:MyLanguage/Event.PEER_CONNECTED|Event.PEER_CONNECTED]]<br/> | + | [[Special:MyLanguage/Event.PEER_CONNECTED|Event.PEER_CONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_CONNECTED --> |
− | [[Special:MyLanguage/Event.PEER_DECLINED|Event.PEER_DECLINED]]<br/> | + | [[Special:MyLanguage/Event.PEER_DECLINED|Event.PEER_DECLINED]]<br/><!-- GIDEROSEVT:Event.PEER_DECLINED --> |
− | [[Special:MyLanguage/Event.PEER_DISCONNECTED|Event.PEER_DISCONNECTED]]<br/> | + | [[Special:MyLanguage/Event.PEER_DISCONNECTED|Event.PEER_DISCONNECTED]]<br/><!-- GIDEROSEVT:Event.PEER_DISCONNECTED --> |
− | [[Special:MyLanguage/Event.PEER_INVITED|Event.PEER_INVITED]]<br/> | + | [[Special:MyLanguage/Event.PEER_INVITED|Event.PEER_INVITED]]<br/><!-- GIDEROSEVT:Event.PEER_INVITED --> |
− | [[Special:MyLanguage/Event.PEER_JOINED|Event.PEER_JOINED]]<br/> | + | [[Special:MyLanguage/Event.PEER_JOINED|Event.PEER_JOINED]]<br/><!-- GIDEROSEVT:Event.PEER_JOINED --> |
− | [[Special:MyLanguage/Event.PEER_LEFT|Event.PEER_LEFT]]<br/> | + | [[Special:MyLanguage/Event.PEER_LEFT|Event.PEER_LEFT]]<br/><!-- GIDEROSEVT:Event.PEER_LEFT --> |
− | [[Special:MyLanguage/Event.PLAYER_INFORMATION_COMPLETE|Event.PLAYER_INFORMATION_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.PLAYER_INFORMATION_COMPLETE|Event.PLAYER_INFORMATION_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_COMPLETE --> |
− | [[Special:MyLanguage/Event.PLAYER_INFORMATION_ERROR|Event.PLAYER_INFORMATION_ERROR]]<br/> | + | [[Special:MyLanguage/Event.PLAYER_INFORMATION_ERROR|Event.PLAYER_INFORMATION_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_INFORMATION_ERROR --> |
− | [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_COMPLETE --> |
− | [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]]<br/> | + | [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.PLAYER_SCORE_ERROR --> |
− | [[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_COMPLETE|Event.REPORT_ACHIEVEMENT_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_COMPLETE|Event.REPORT_ACHIEVEMENT_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_COMPLETE --> |
− | [[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_ERROR|Event.REPORT_ACHIEVEMENT_ERROR]]<br/> | + | [[Special:MyLanguage/Event.REPORT_ACHIEVEMENT_ERROR|Event.REPORT_ACHIEVEMENT_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_ACHIEVEMENT_ERROR --> |
− | [[Special:MyLanguage/Event.REPORT_SCORE_COMPLETE|Event.REPORT_SCORE_COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.REPORT_SCORE_COMPLETE|Event.REPORT_SCORE_COMPLETE]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_COMPLETE --> |
− | [[Special:MyLanguage/Event.REPORT_SCORE_ERROR|Event.REPORT_SCORE_ERROR]]<br/> | + | [[Special:MyLanguage/Event.REPORT_SCORE_ERROR|Event.REPORT_SCORE_ERROR]]<br/><!-- GIDEROSEVT:Event.REPORT_SCORE_ERROR --> |
− | [[Special:MyLanguage/Event.ROOM_AUTO_MATCHING|Event.ROOM_AUTO_MATCHING]]<br/> | + | [[Special:MyLanguage/Event.ROOM_AUTO_MATCHING|Event.ROOM_AUTO_MATCHING]]<br/><!-- GIDEROSEVT:Event.ROOM_AUTO_MATCHING --> |
− | [[Special:MyLanguage/Event.ROOM_CONNECTED|Event.ROOM_CONNECTED]]<br/> | + | [[Special:MyLanguage/Event.ROOM_CONNECTED|Event.ROOM_CONNECTED]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTED --> |
− | [[Special:MyLanguage/Event.ROOM_CONNECTING|Event.ROOM_CONNECTING]]<br/> | + | [[Special:MyLanguage/Event.ROOM_CONNECTING|Event.ROOM_CONNECTING]]<br/><!-- GIDEROSEVT:Event.ROOM_CONNECTING --> |
− | [[Special:MyLanguage/Event.ROOM_CREATED|Event.ROOM_CREATED]]<br/> | + | [[Special:MyLanguage/Event.ROOM_CREATED|Event.ROOM_CREATED]]<br/><!-- GIDEROSEVT:Event.ROOM_CREATED --> |
− | [[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]]<br/> | + | [[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]]<br/><!-- GIDEROSEVT:Event.STATE_CONFLICT --> |
− | [[Special:MyLanguage/Event.STATE_DELETED|Event.STATE_DELETED]]<br/> | + | [[Special:MyLanguage/Event.STATE_DELETED|Event.STATE_DELETED]]<br/><!-- GIDEROSEVT:Event.STATE_DELETED --> |
− | [[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]]<br/> | + | [[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]]<br/><!-- GIDEROSEVT:Event.STATE_ERROR --> |
− | [[Special:MyLanguage/Event.STATE_LOADED|Event.STATE_LOADED]]<br/> | + | [[Special:MyLanguage/Event.STATE_LOADED|Event.STATE_LOADED]]<br/><!-- GIDEROSEVT:Event.STATE_LOADED --> |
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
− | [[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]<br/> | + | [[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]<br/><!-- GIDEROSCST:Gaming.ALL_PLAYERS --> |
− | [[Special:MyLanguage/Gaming.ALL_TIME|Gaming.ALL_TIME]]<br/> | + | [[Special:MyLanguage/Gaming.ALL_TIME|Gaming.ALL_TIME]]<br/><!-- GIDEROSCST:Gaming.ALL_TIME --> |
− | [[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]]<br/> | + | [[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]]<br/><!-- GIDEROSCST:Gaming.FRIENDS --> |
− | [[Special:MyLanguage/Gaming.HIDDEN|Gaming.HIDDEN]]<br/> | + | [[Special:MyLanguage/Gaming.HIDDEN|Gaming.HIDDEN]]<br/><!-- GIDEROSCST:Gaming.HIDDEN --> |
− | [[Special:MyLanguage/Gaming.REVEALED|Gaming.REVEALED]]<br/> | + | [[Special:MyLanguage/Gaming.REVEALED|Gaming.REVEALED]]<br/><!-- GIDEROSCST:Gaming.REVEALED --> |
− | [[Special:MyLanguage/Gaming.TODAY|Gaming.TODAY]]<br/> | + | [[Special:MyLanguage/Gaming.TODAY|Gaming.TODAY]]<br/><!-- GIDEROSCST:Gaming.TODAY --> |
− | [[Special:MyLanguage/Gaming.UNLOCKED|Gaming.UNLOCKED]]<br/> | + | [[Special:MyLanguage/Gaming.UNLOCKED|Gaming.UNLOCKED]]<br/><!-- GIDEROSCST:Gaming.UNLOCKED --> |
− | [[Special:MyLanguage/Gaming.WEEK|Gaming.WEEK]]<br/> | + | [[Special:MyLanguage/Gaming.WEEK|Gaming.WEEK]]<br/><!-- GIDEROSCST:Gaming.WEEK --> |
|} | |} |
Revision as of 14:56, 31 August 2018
Supported platforms:
Available since: Gideros 2012.09
Description
The Gaming class is defined in the module "gaming". Therefore, you need to call
require("gaming") before using it. Loading the Gaming module
also creates a global class Gaming.
Currently supports:
- Gaming.new("googleplay") -- Android
- Gaming.new("gamekit") -- iOS