-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbstractScene.h
148 lines (95 loc) · 2.89 KB
/
AbstractScene.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
//
// AbstractScene.h
// TEORBattleTest
//
// Created by Zach Babb on 5/21/11.
// Copyright 2011 InstantLazer. All rights reserved.
//
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "Global.h"
@class TouchManager;
@class InputManager;
@class ImageRenderManager;
@class FontManager;
@class SoundManager;
@class GameController;
@class BitmapFont;
@class Image;
@class TiledMap;
@class ScriptReader;
@interface AbstractScene : NSObject <UIAccelerometerDelegate> {
TouchManager *sharedTouchManager;
InputManager *sharedInputManager;
ImageRenderManager *sharedImageRenderManager;
FontManager *sharedFontManager;
SoundManager *sharedSoundManager;
GameController *sharedGameController;
ScriptReader *sharedScriptReader;
BitmapFont *battleFont;
BOOL doNotUpdate;
NSMutableArray *activeObjects;
NSMutableArray *activeEntities;
NSMutableArray *activeImages;
NSMutableArray *drawingImages;
NSMutableArray *suspendedEntities;
NSMutableArray *suspendedObjects;
Image *battleImage;
float inactiveTimer;
BOOL isLineActive;
Image *linePixel;
CGPoint cameraPosition;
CGPoint playerPosition;
TiledMap *sceneMap;
int stage;
BOOL cutScene;
float cutSceneTimer;
float battlePossibility;
BOOL allowBattles;
BOOL wait;
//Drawing lines test
UIColor *green;
UIColor *blue;
UIColor *black;
}
@property (nonatomic, retain) NSMutableArray *activeEntities;
@property (nonatomic, retain) NSMutableArray *activeImages;
@property (nonatomic, retain) NSMutableArray *activeObjects;
@property (nonatomic, retain) BitmapFont *battleFont;
@property (nonatomic, retain) Image *battleImage;
- (void)updateSceneWithDelta:(float)aDelta;
- (void)renderScene;
- (void)updateWithAccelerometer:(UIAcceleration *)aAcceleration;
- (void)transitionToSceneWithKey:(NSString *)aKey;
- (BOOL)isBlocked:(float)x y:(float)y;
- (void)addObjectToActiveObjects:(id)aObject;
- (void)addImageToActiveImages:(id)aImage;
- (void)addEntityToActiveEntities:(id)aEntity;
- (void)addImageToDrawingImages:(id)aImage;
- (void)setCameraPosition:(CGPoint)aCameraPosition;
- (void)removeTextbox;
- (void)removeDrawingImages;
- (void)initBattleCharacters;
- (void)initBattleEnemies;
- (void)initBattle;
- (void)checkIfBattleOver;
- (void)partyHasBeenDefeated;
- (void)endBattle;
- (void)restoreMap;
- (void)drawLineFrom:(CGPoint)aFromPoint to:(CGPoint)aToPoint;
- (void)drawLineOff;
- (void)removeInactiveObjects;
- (void)removeInactiveEntities;
- (void)setCameraPosition:(CGPoint)aCameraPosition;
- (void)moveToNextStageInScene;
- (void)createCollisionMapArray;
- (void)createPortalsArray;
- (BOOL)checkForPortal;
- (void)initChapterOneChampionBattle;
- (void)initChapterOneCampBattle;
- (void)initMidgardBattle;
- (void)initAlfheimBattle;
- (void)initRangerBattleTutorial;
- (void)choiceboxSelectionWas:(int)aSelection;
@end