-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChessServerConnection.h
43 lines (36 loc) · 1.28 KB
/
ChessServerConnection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// ChessServerConnection.h
// Kibitz
//
// Copyright 2014 William Entriken, licensed under the MIT license:
// http://opensource.org/licenses/MIT
//
// Based on Kibitz / ChessServerConnection 2006 Klaus Thul
//
#import "global.h"
#import "Game.h"
#import "Seek.h"
@interface ChessServerConnection : NSObject
@property (nonatomic) int storedGameCounter;
@property (strong, nonatomic) NSMutableArray *serverWindows;
- (ChessServerConnection *)initWithChessServer:(ChessServer *)server appController:(AppController *)controller;
- (void)switchAllSoundsOff;
- (int)numSeeks;
- (id)dataForSeekTable:(NSString *)x row:(int)rowIndex;
- (int)lengthOutput;
- (BOOL)isConnected;
- (void)sendToServer:(NSString *)s;
+ (NSString *)findTag:(NSString *)tag in:(NSArray *)array;
- (void)newSeek;
- (void)sendSeekToServer;
- (void)sendUserInputToServer:(NSString *)s;
- (void)chatWindowClosed:(ChatWindowController *)cwc;
///TODO: don't belong in this controller class
- (void)newPlayWindow;
- (void)newChatWindow;
- (BOOL)lastWindow;
- (void)gameWindowClosed:(GameWindowController *)gwc;
///TODO: these need to be specific for one game
- (void)userMoveFrom:(struct ChessField)from to:(struct ChessField)to;
- (void)userMoveFrom:(struct ChessField)from to:(struct ChessField)to promotion:(int)promotionPiece;
@end