aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra.h
AgeCommit message (Collapse)Author
2006-09-23Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle ↵Max Horn
the linker dependency graph). Porters will have to update project files svn-id: r23974
2006-09-17- removes the kyra specific language flag system, and uses the language enum ↵Johannes Schickel
defined in Common for that now - also reworks the game flag system in general svn-id: r23920
2006-09-16Reduce code duplicationMax Horn
svn-id: r23888
2006-09-16Simplifies resource handling for the CD version of Kyrandia.Johannes Schickel
(also less file loading at startup, but more on room change) svn-id: r23887
2006-09-15- adds dirty rect handling to the kyra engine (needs some more tests before ↵Johannes Schickel
I commit it to branch though) - initializes an uninitiliazied variable which caused crashes from time to time svn-id: r23878
2006-08-26Adds some framework for the Kyra2 intro, expands it a little bit and adds ↵Oystein Eftevaag
some static resources (strings, etc). Also adding a modified version of eriktorbjorn's '[1531929] KYRA: Kyra 2 & 3 main menu unification', with added mouse pointer and sundry. svn-id: r23766
2006-07-28Moves the kyra2 code to kyra2.cpp and kyra2.h, renames WSAMovieV3 to ↵Oystein Eftevaag
WSAMovie2 (kyra2 uses the same format), renames a define in kyra3.h for consistency, and adds a case for CMDS in the VQA player to avoid the constant warning (the tag is always present and empty). Credit/blame for the last one goes to Clemmy :). Starting kyra2 will now show the title animation. svn-id: r23614
2006-07-27Oops it should never be renamed to c1_* but to o1_* changing this now.Johannes Schickel
svn-id: r23613
2006-07-27- renaming all opcodes from cmd_* to c1_*Johannes Schickel
- changing ScriptHelper functions so it will be useable for kyra2 and kyra3 too - unbreaking savegames (increasing the VERSION number since the game flags table got resized to be useable for kyra3) svn-id: r23612
2006-07-27- moving KyraEngine_v3 declaration to newly added kyra3.hJohannes Schickel
- implements a little bit init stuff - implements some music handling svn-id: r23610
2006-06-24Fixes save/load of kyra engine.Johannes Schickel
svn-id: r23287
2006-06-05removes _selectedMenuItem again.Johannes Schickel
svn-id: r22944
2006-06-05Fixed PalmOS ARM crashesChris Apers
svn-id: r22942
2006-05-28Got rid of _selectedMenuItem to make LordHoto happier.Torbjörn Andersson
svn-id: r22725
2006-05-28cleanupJohannes Schickel
svn-id: r22717
2006-05-28- makes Screen::getPagePtr privateJohannes Schickel
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling) - moves KyraEngine::loadBitmap to Screen svn-id: r22716
2006-05-28Commits Chriliths patch for fixing Kyra on PalmOS.Johannes Schickel
svn-id: r22708
2006-05-28Fixes bug # 1494945 ("KYRA1: Actor disappearing in an animation").Johannes Schickel
svn-id: r22707
2006-05-28The Kyra settings are now stored in the config file instead of the savegames.Torbjörn Andersson
The settings in older savegames are ignored. svn-id: r22705
2006-05-28Added speechEnabled() and textEnabled() to simplify the text/speech config ↵Oystein Eftevaag
checks a bit, and added checks some more places svn-id: r22703
2006-05-27Draw the selected menu item (currently always the first one) highlighted, i.e.Torbjörn Andersson
white instead of yellow. svn-id: r22676
2006-05-21Some minor VQA player fixes:Torbjörn Andersson
* The playVQA() function now takes the name of the cutscene, rather than the filename. This is so that playVQA("FOO") will be able to play FOO0.VQA, FOO1.VQA or FOO2.VQA, depending on which movie size is selected. * The VQA player centers movies by default, so don't set the position to 0,0. * Ask the backend for screen dimensions (for centering the movie) rather than hard-coding them. svn-id: r22560
2006-05-21- allows kyra3 to exit againJohannes Schickel
- implements language selection for kyra3 svn-id: r22559
2006-05-21- reworks quit handling (no _system->quit() anymore)Johannes Schickel
- fixes some deinitalization problems svn-id: r22558
2006-05-21Implements kyra3 main menu drawing.Johannes Schickel
svn-id: r22556
2006-05-20makes destructor of KyraEngine virtualJohannes Schickel
svn-id: r22547
2006-05-18- load fonts for kyra3Johannes Schickel
- adds screen dim tables for kyra3 - adds palette / screen backup for the vqa player - small changes in the vqa player to use the Kyra::Screen functions - adds (partially implemented/unimplemented) main menu drawing/handling functions (nothing to see yet) svn-id: r22528
2006-05-18Added player for the Kyra 3 VQA cutscenes, based on my earlier prototype. ItTorbjörn Andersson
could use some cleanup, and there are a couple of TODOs sprinkled throughout the code, but it seems to work reasonably well. Until the Kyra 3 main menu is implemented, it won't actually be used though. It uses the appendable audio stream class, which I have moved out of the SCUMM engine. svn-id: r22526
2006-05-18fixes kyra2 gameflag initJohannes Schickel
svn-id: r22514
2006-05-17- adds AUD file player (has still some problems with playing)Johannes Schickel
- adds a new sound class SoundDigital (only used for Kyra3) (needs more work though) svn-id: r22497
2006-05-16Set gameflags for kyra3 properly.Eugene Sandulenko
svn-id: r22493
2006-05-16Removes ENABLE_KYRA2 and ENABLE_KYRA3.Johannes Schickel
svn-id: r22492
2006-05-16- implements kyrandia 3 wsa loaderJohannes Schickel
- fixes initalisation problems - adds setX, setY, setDrawPage to Kyra::Movie instead of directly accessing _x, _y and _drawPage svn-id: r22490
2006-05-12- little cleanupsJohannes Schickel
- adds kyra3 dummies svn-id: r22425
2006-05-08Replaced a bunch of delay loops with a new delayUntil() function. Now all ofTorbjörn Andersson
them will at least sleep if the remaining delay is at least 10 ms. (Personally, I don't like the idea of busy-waiting even 9 ms, but now that it's in its own function, it becomes much easier if we want to change that behaviour. There are still plenty of custom delay loops left, though.) svn-id: r22393
2006-05-04Adds (partial) support for italian floppy. (still hardcoded strings are ↵Johannes Schickel
missing) (Bug # 1409244 ("KYRA: GFX problems with ITALIAN floppy")). svn-id: r22333
2006-05-03- modifies loadBitmap not to crash if a image isn't foundJohannes Schickel
- starts to clean up the engine initalisation code svn-id: r22308
2006-05-01Adds archive file list, MD5 for my CD version, and a few function stubs for ↵Oystein Eftevaag
Hand of Fate, to use as a basis for further work svn-id: r22252
2006-04-29Moved the AudioCDManager as well as class AudioStream and its (standard) ↵Max Horn
subclasses to namespace Audio svn-id: r22231
2006-04-25Adds some code to dynamically resize and readjust the menus if the text ↵Oystein Eftevaag
strings of the current language are too long, to avoid overlaps etc. svn-id: r22148
2006-04-23Uses kyra.dat for GUI strings instead of hardcoding them, which means ↵Oystein Eftevaag
localized strings are now supported for the menus. Note that the size of the menus are not yet calculated to account for the longer strings in some languages svn-id: r22105
2006-04-15- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a ↵Max Horn
new getActiveDomain method that returns a pointer to the actual active *domain* - Added Engine::_targetName whose value is computed from the name of the active domain - Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain - This in turn allowed for removing usage of GameDetector in many places svn-id: r21916
2006-04-09Fix const correctness in Kyra's StaticResource::loadStrings and ↵Max Horn
StaticResource::loadPaletteTable (notice the difference between a pointer pointing to a pointer pointing to const memory, vs. a pointer pointing to a *constant* pointer pointing to const memory) svn-id: r21708
2006-03-18- started to rework static resource loadingJohannes Schickel
- made some function parameters const (to work with new static res code) svn-id: r21365
2006-03-18Extends seq_drinkPotionAnim() so that the color of the flask BrandonOystein Eftevaag
drinks will be correct. Also fixes a bug where an animation (Brandon ringing the bells) would play too quickly. svn-id: r21354
2006-03-15Added mouse wheel scrolling to save/restore dialogs.Torbjörn Andersson
svn-id: r21314
2006-03-14- Deletes wrong spaces in debugC calls in resource.cppJohannes Schickel
- Adds support for amiga .pak files (and a filelist) svn-id: r21299
2006-03-12Music in the last two intro scenes plays now again with adlib.Johannes Schickel
Cleaned up the sound code a bit (removed some unneeded functions). svn-id: r21234
2006-03-09- Removes deleted waitTicks prototype in KyraEngineJohannes Schickel
- Adds sound fading support to the adlib player - Adds support for stopping running tracks - Changes baseFreq type back to uint8 - corrects octave handling in updateAndOutput1 (Thanks to eriktorbjorn for doing that) svn-id: r21185
2006-03-08Implemented the last menu (the settings screen). Walking speed, text speed,Oystein Eftevaag
and speech modes (text only, speech only, speech & text) can now be configured. Toggling music and sound in general is not enabled yet. Also formatted the static menu resources a bit differently, made sure some vars in the menu code always got initalized, and fixed a slight formatting error :). svn-id: r21145