Added Pong

This commit is contained in:
Jeena Paradies 2011-02-28 14:58:00 +01:00
parent e53c2a82c4
commit cee10d5f75
94 changed files with 12789 additions and 0 deletions

View file

@ -0,0 +1,31 @@
//
// Network.h
// Pong
//
// Created by Jeena on 27.02.11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AsyncSocket.h"
#import "GGSDelegate.h"
@protocol GGSDelegate;
@interface GGSNetwork : NSObject {
AsyncSocket *asyncSocket;
id<GGSDelegate> delegate;
NSString *gameToken;
NSString *currentCommand;
}
@property (nonatomic, retain) AsyncSocket *asyncSocket;
@property (nonatomic, retain) id<GGSDelegate> delegate;
@property (nonatomic, retain) NSString *gameToken;
@property (nonatomic, retain) NSString *currentCommand;
- (id)initWithDelegate:(id)delegate;
- (void)define:(NSString *)sourceCode;
- (void)sendCommand:(NSString *)command withArgs:(NSString *)args;
@end