00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Foundation/Foundation.h>
00010
00020 @interface INFSmartFoxUser : NSObject {
00021 @private
00022 NSInteger _id;
00023 NSString *_name;
00024 NSMutableDictionary *_variables;
00025 BOOL _isSpec;
00026 BOOL _isMod;
00027 NSInteger _pId;
00028 }
00029
00038 + (id)user:(NSInteger)id name:(NSString *)name;
00039
00040 - (id)initWithParams:(NSInteger)id name:(NSString *)name;
00041
00055 - (int)getId;
00056
00070 - (NSString *)getName;
00071
00088 - (id)getVariable:(NSString *)varName;
00089
00107 - (NSMutableDictionary *)getVariables;
00108
00116 - (void)setVariables:(NSDictionary *)o;
00117
00123 - (void)clearVariables;
00124
00132 - (void)setIsSpectator:(BOOL)b;
00133
00146 - (BOOL)isSpectator;
00147
00155 - (void)setModerator:(BOOL)b;
00156
00169 - (BOOL)isModerator;
00170
00184 - (NSInteger)getPlayerId;
00185
00193 - (void)setPlayerId:(NSInteger)pid;
00194
00195 @end