22 #ifndef ULTIMA4_CONTROLLERS_INTRO_CONTROLLER_H 23 #define ULTIMA4_CONTROLLERS_INTRO_CONTROLLER_H 25 #include "ultima/ultima4/controllers/controller.h" 26 #include "ultima/ultima4/core/observer.h" 27 #include "ultima/ultima4/filesys/savegame.h" 28 #include "ultima/ultima4/views/menu.h" 29 #include "ultima/ultima4/views/textview.h" 30 #include "ultima/ultima4/views/imageview.h" 31 #include "ultima/ultima4/views/tileview.h" 32 #include "ultima/shared/core/file.h" 37 class IntroObjectState;
58 Tile **_baseTileTable;
59 byte *_beastie1FrameTable;
60 byte *_beastie2FrameTable;
91 bool hasInitiatedNewGame();
101 bool keyPressed(
int key)
override;
119 void timerFired()
override;
138 void updateGameplayMenu(
MenuEvent &event);
139 void updateInterfaceMenu(
MenuEvent &event);
159 void drawMapStatic();
160 void drawMapAnimated();
174 void drawBeastie(
int beast,
int vertoffset,
int frame);
189 void drawCard(
int pos,
int card);
194 void drawAbacusBeads(
int row,
int selectedVirtue,
int rejectedVirtue);
200 void initQuestionTree();
207 bool doQuestion(
int answer);
213 void initPlayers(
SaveGame *saveGame);
226 void tryTriggerIntroMusic();
233 void initiateNewGame();
234 void finishInitiateGame(
const Common::String &nameBuffer, SexType sex);
240 void startQuestions();
246 void journeyOnward();
264 void runMenu(
Menu *menu,
TextView *view,
bool withBeasties);
290 MI_GFX_TILE_TRANSPARENCY,
291 MI_GFX_TILE_TRANSPARENCY_SHADOW_SIZE,
292 MI_GFX_TILE_TRANSPARENCY_SHADOW_OPACITY,
344 int _questionTree[15];
348 bool _beastiesVisible;
351 IntroObjectState *_objectStateTable;
353 bool _justInitiatedNewGame;
377 void shufflePlotData();
396 void addTitle(
int x,
int y,
int w,
int h, AnimType method, uint32 delay,
int duration);
412 void getTitleSourceData();
422 int _transparentIndex;
423 RGBA _transparentColor;
Definition: savegame.h:270
Definition: observer.h:37
T * iterator
Definition: array.h:54
Definition: textview.h:41
Definition: controller.h:35
Definition: detection.h:27
Definition: tileview.h:42
Definition: intro_controller.h:43
Definition: imageview.h:33
Definition: settings.h:104
Definition: intro_controller.h:81
Definition: movie_decoder.h:32