37 |
@class NetInfosClient; |
@class NetInfosClient; |
38 |
@class NetClient; |
@class NetClient; |
39 |
|
|
40 |
@interface NetParty : NSObject <NetParty, NSCoding> |
@interface NetParty : NSObject <NetParty> //, NSCoding> |
41 |
{ |
{ |
42 |
@private |
@private |
43 |
NetServer *_server; |
NetServer *_server; |
44 |
NSMutableArray *_clients; |
NSMutableArray *_clients; |
45 |
HgGame *_game; |
HgGame *_game; |
46 |
|
unsigned *_maxNumPlayers; |
47 |
|
NSString *_mapName; |
48 |
|
NSString *_master; |
49 |
|
|
50 |
} |
} |
51 |
|
|
52 |
- (id) initWithName: (NSString *)gameName |
- (id) initWithGameName: (NSString *)gameName |
53 |
inServer: (NetServer *)server; |
maxNumPlayers: (unsigned)maxNumPlayers |
54 |
|
mapName: (NSString *)mapName |
55 |
|
master: (NSString *)master |
56 |
|
inServer: (NetServer *)server; |
57 |
- (NSArray *) clients; |
- (NSArray *) clients; |
58 |
- (void) terminate; |
- (void) terminate; |
59 |
- (void) disconnect: (NetInfosClient *)client; |
- (void) disconnect: (NetInfosClient *)client; |