- Main Page
- Related Pages
- Classes
- Files

- File List

# /Users/cem/Works/INFSmartFoxiPhoneLibrary/INFSmartFoxiPhoneLibrary/Classes/INFSmartFoxRoom.h

    00001 //
    00002 //  INFSmartFoxRoom.h
    00003 //  OkeyiPhoneClient
    00004 //
    00005 //  Created by Cem Uzunlar | infosfer.com on 11/23/08.
    00006 //  Copyright 2008 Infosfer Game and Visualizaiton Technologies Ltd.. All rights reserved.
    00007 //
    00008
    00009 #import <Foundation/Foundation.h>
    00010
    00011 @class INFSmartFoxUser;
    00021 @interface INFSmartFoxRoom : NSObject {
    00022 @private
    00023         NSInteger _id;
    00024         NSString *_name;
    00025         NSInteger _maxUsers;
    00026         NSInteger _maxSpectators;
    00027         BOOL _temp;
    00028         BOOL _game;
    00029         BOOL _priv;
    00030         BOOL _limbo;
    00031         NSInteger _userCount;
    00032         NSInteger _specCount;
    00033
    00034         NSInteger _myPlayerIndex;
    00035
    00036         NSMutableDictionary *_userList;
    00037         NSMutableDictionary *_variables;
    00038 }
    00039
    00056 + (id)room:(NSInteger)id name:(NSString *)name maxUsers:(NSInteger)maxUsers maxSpectators:(NSInteger)maxSpectators isTemp:(BOOL)isTemp isGame:(BOOL)isGame isPrivate:(BOOL)isPrivate isLimbo:(BOOL)isLimbo userCount:(NSInteger)userCount specCount:(NSInteger)specCount;
    00057
    00058 - (id)initWithParams:(NSInteger)id name:(NSString *)name maxUsers:(NSInteger)maxUsers maxSpectators:(NSInteger)maxSpectators isTemp:(BOOL)isTemp isGame:(BOOL)isGame isPrivate:(BOOL)isPrivate isLimbo:(BOOL)isLimbo userCount:(NSInteger)userCount specCount:(NSInteger)specCount;
    00059
    00068 - (void)addUser:(INFSmartFoxUser *)u id:(NSInteger)id;
    00069
    00077 - (void)removeUser:(NSInteger)id;
    00078
    00097 - (NSMutableDictionary *)getUserList;
    00098
    00099
    00116 - (INFSmartFoxUser *)getUser:(id)userId;
    00117
    00118
    00124 - (void)clearUserList;
    00125
    00142 - (id)getVariable:(NSString *)varName;
    00143
    00161 - (NSMutableDictionary *)getVariables;
    00162
    00170 - (void)setVariables:(NSDictionary *)vars;
    00171
    00177 - (void)clearVariables;
    00178
    00192 - (NSString *)getName;
    00193
    00207 - (NSInteger)getId;
    00208
    00222 - (BOOL)isTemp;
    00223
    00238 - (BOOL)isGame;
    00239
    00252 - (BOOL)isPrivate;
    00253
    00268 - (NSInteger)getUserCount;
    00269
    00284 - (NSInteger)getSpectatorCount;
    00285
    00299 - (NSInteger)getMaxUsers;
    00300
    00316 - (NSInteger)getMaxSpectators;
    00317
    00318
    00329 - (void)setMyPlayerIndex:(NSInteger)id;
    00330
    00344 - (NSInteger)getMyPlayerIndex;
    00345
    00353 - (void)setIsLimbo:(BOOL)b;
    00354
    00369 - (BOOL)isLimbo;
    00370
    00378 - (void)setUserCount:(NSInteger)n;
    00379
    00387 - (void)setSpectatorCount:(NSInteger)n;
    00388
    00389 @end