SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
SpectatorToPlayerRequest.h
1 //
2 // SpectatorToPlayerRequest.h
3 // SFS2X
4 //
5 // Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
6 //
7 // Maintained and developed by A51 Integrated.
8 // Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
9 //
10 
11 
12 #import "BaseRequest.h"
13 #import "Room.h"
14 
15 EXTERN NSString * const SpectatorToPlayerRequest_KEY_ROOM_ID;
16 EXTERN NSString * const SpectatorToPlayerRequest_KEY_USER_ID;
17 EXTERN NSString * const SpectatorToPlayerRequest_KEY_PLAYER_ID;
18 
19 /** Attempt to turn the current User from Spectator into a Player (in a Game Room)
20 
21  This could fail if no Player slots are available in the Room at the time of the request
22  */
23 @interface SpectatorToPlayerRequest : BaseRequest {
24 
25 
26  id <Room> _room;
27 }
28 
29 @property (strong) id <Room> room;
30 
31 -(id)initWithTargetRoom:(id <Room>)targetRoom;
32 /**
33 
34  @param targetRoom the Room where the change has to be performed, a null value indicates the last joined Room (default)
35 
36  @see [ISFSEvents onSpectatorToPlayer:]
37  @see [ISFSEvents onSpectatorToPlayerError:]
38  @see PlayerToSpectatorRequest
39 
40  */
41 +(id)requestWithTargetRoom:(id <Room>)targetRoom;
42 +(id)request;
43 
44 @end
SpectatorToPlayerRequest
Definition: SpectatorToPlayerRequest.h:23