project_files/HedgewarsMobile/Classes/GameInterfaceBridge.h
author Wuzzy <Wuzzy2@mail.ru>
Mon, 12 Feb 2018 22:22:27 +0100
changeset 12988 a15413d896c3
parent 11572 28afdaa159cb
child 12872 00215a7ec5f5
permissions -rw-r--r--
Mutant: Force special mutant/feeder hat+name to be only hold by those who deserved it Previously, a player could just name their hog "Mutant" and give it the respective hat to try to confuse other players. This is no longer possible.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     1
/*
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
6700
e04da46ee43c the most important commit of the year
koda
parents: 6353
diff changeset
     3
 * Copyright (c) 2009-2012 Vittorio Giovara <vittorio.giovara@gmail.com>
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     4
 *
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     8
 *
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    12
 * GNU General Public License for more details.
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    13
 *
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
10108
c68cf030eded update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents: 6870
diff changeset
    16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    17
 */
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    18
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    19
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    20
#import <Foundation/Foundation.h>
6870
f72cac290325 ios: refactor the code of the after-game statistics display using delegates
koda
parents: 6832
diff changeset
    21
#import "EngineProtocolNetwork.h"
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    22
6832
fae8fd118da9 dates are no more!
koda
parents: 6719
diff changeset
    23
6870
f72cac290325 ios: refactor the code of the after-game statistics display using delegates
koda
parents: 6832
diff changeset
    24
@interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> {
6301
1259736c0134 engine interaction class refactoring, round 4 or 5, can't remember: this time use the class methods to create an instance object and operates on that, reducing the number of arguments between methods and simplifying memory management
koda
parents: 6266
diff changeset
    25
    UIView *blackView;
6353
d8f62c805619 restore displaying statistics at the end of a game and restore warning lower views that they are going to appear
koda
parents: 6321
diff changeset
    26
    NSString *savePath;
6870
f72cac290325 ios: refactor the code of the after-game statistics display using delegates
koda
parents: 6832
diff changeset
    27
    NSInteger port;
6301
1259736c0134 engine interaction class refactoring, round 4 or 5, can't remember: this time use the class methods to create an instance object and operates on that, reducing the number of arguments between methods and simplifying memory management
koda
parents: 6266
diff changeset
    28
}
6265
a6944f94c19f aaand remove also ipcport from the class interface as well
koda
parents: 6263
diff changeset
    29
6301
1259736c0134 engine interaction class refactoring, round 4 or 5, can't remember: this time use the class methods to create an instance object and operates on that, reducing the number of arguments between methods and simplifying memory management
koda
parents: 6266
diff changeset
    30
@property (nonatomic,retain) UIView *blackView;
6353
d8f62c805619 restore displaying statistics at the end of a game and restore warning lower views that they are going to appear
koda
parents: 6321
diff changeset
    31
@property (nonatomic,retain) NSString *savePath;
6870
f72cac290325 ios: refactor the code of the after-game statistics display using delegates
koda
parents: 6832
diff changeset
    32
@property (assign) NSInteger port;
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    33
6266
b02a1e92dba2 convert gameinterfacebridge in simple-to-use class methods
koda
parents: 6265
diff changeset
    34
+(void) startLocalGame:(NSDictionary *)withOptions;
b02a1e92dba2 convert gameinterfacebridge in simple-to-use class methods
koda
parents: 6265
diff changeset
    35
+(void) startSaveGame:(NSString *)atPath;
b02a1e92dba2 convert gameinterfacebridge in simple-to-use class methods
koda
parents: 6265
diff changeset
    36
+(void) startMissionGame:(NSString *)withScript;
11572
28afdaa159cb - Campaign for iOS: Finally can launch campaign's mission game from list!
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    37
+(void) startCampaignMissionGameWithScript:(NSString *)missionScriptName forCampaign:(NSString *)campaignName;
6719
d2afc6b2d88e added one button play feature, like in desktop frontend; need to make sure that the hardcoded stuff never gets deleted
koda
parents: 6700
diff changeset
    38
+(void) startSimpleGame;
6083
72c882c0fd0f first pass for implementing missions/training selection on ipad (not yet running)
koda
parents: 5696
diff changeset
    39
6353
d8f62c805619 restore displaying statistics at the end of a game and restore warning lower views that they are going to appear
koda
parents: 6321
diff changeset
    40
+(void) registerCallingController:(UIViewController *)controller;
d8f62c805619 restore displaying statistics at the end of a game and restore warning lower views that they are going to appear
koda
parents: 6321
diff changeset
    41
5154
851f36579ed4 initial refactoring for interfacing the game engine from the ios frontend (game doesn't run yet)
koda
parents:
diff changeset
    42
@end