Commit Graph
429 Commits
Author SHA1 Message Date
D G Turner 51a2685e3f SUPERNOVA: Fix Unused Variable Compiler Warnings. 2018-07-29 08:25:37 +01:00
Eugene Sandulenko a6d900db88 SUPERNOVA: Fix warning 2018-06-29 09:14:17 +02:00
Adrian Frühwirth a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Joseph-Eugene Winzer 77c06fe487 SUPERNOVA: Removes unused variable 2018-04-16 11:47:06 +02:00
Joseph-Eugene Winzer d4592b6077 SUPERNOVA: Removes global nullObject
Before nullObject was a static member of Object class and now a member
of GameManager. Also the Inventory constructor was extended for taking a
pointer to the nullObject that Invetory::get() returns if no Object was
found.
2018-04-15 18:47:33 +01:00
Joseph-Eugene Winzer 94ebc96705 SUPERNOVA: Implements renderImage with ImageId 2018-04-15 18:28:39 +01:00
Joseph-Eugene Winzer a4ac8895da SUPERNOVA: Removes renderImageSection() from SupernovaEngine
This function is never called by itself. It is a helper function for
renderImage().
2018-04-15 18:28:39 +01:00
Joseph-Eugene Winzer 2a170fb929 SUPERNOVA: Moves constants to screen.h 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 3bc9a5a779 SUPERNOVA: Corrects header includes 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 0668f9d363 SUPERNOVA: Removes unused RNG instance 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 3749f98dea SUPERNOVA: Fixes type camel case 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 454b8a98c3 SUPERNOVA: Wraps resources in ScopedPtr 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 0193814796 SUPERNOVA: Recreates ProtrackerStream on getSoundStream 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 93dde5d235 SUPERNOVA: Renames Music/AudioIndex to Music/AudioId 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer d5105ab9c7 SUPERNOVA: Fixes fallthrough warning 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer f78a835816 SUPERNOVA: Moves font data to screenstatic.cpp 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer af4f3ab4c5 SUPERNOVA: Moves cursor buffer to resman.cpp 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 5008e88d4b SUPERNOVA: Fixes setCurrentImage 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 6ea629f944 SUPERNOVA: Moves VGA Palette to screenstatic.cpp 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer 2ead17f09f SUPERNOVA: Implements render functions
Although SupernovaEngine forwards render calls to screen, it also
exposed members publicly like _brightness. Therefore, a few changes were
necessary in rooms and state.
2018-04-15 18:28:29 +01:00
Joseph-Eugene Winzer ac438cc918 SUPERNOVA: Adds skeleton for screen abstraction 2018-04-15 18:23:12 +01:00
Joseph-Eugene Winzer f525efa1d4 SUPERNOVA: Adds image information
ImageID gives every image a name that will be used as an index into
imageInfo that returns filenumber and section.
2018-04-15 18:23:12 +01:00
Joseph-Eugene Winzer ab208d1077 SUPERNOVA: Implements image buffering 2018-04-15 18:23:12 +01:00
Joseph-Eugene Winzer 88a2026830 SUPERNOVA: Adds comment for using KNIFE on WIRE2 2018-04-15 18:23:12 +01:00
Joseph-Eugene Winzer 6187e25199 SUPERNOVA: Renames NULL to nullptr 2018-04-15 18:23:11 +01:00
Joseph-Eugene Winzer d963827dbb SUPERNOVA: Renames MSNImageDecoder to MSNImage 2018-04-15 18:23:11 +01:00
Joseph-Eugene Winzer b2dc8d5424 SUPERNOVA: Adds resource abstraction
The resource abstraction includes loading of sound files and cursor
graphics.
2018-04-15 18:22:57 +01:00
Joseph-Eugene Winzer 07f5f34d42 SUPERNOVA: Removes stopAudio() 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 32877639d7 SUPERNOVA: Adds init function to SupernovaEngine 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 26543be637 SUPERNOVA: Adds sound abstraction 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer bda0eb4c88 SUPERNOVA: Adds English msn2 to detection 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer dc38d6a8cd SUPERNOVA: Renames _timer1 to _messageDuration 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 3c81c61df9 SUPERNOVA: Removes TODO 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer ff5426c609 SUPERNOVA: Moves updateEvents() to GameManager
updatEvents() depends on an initalized GameManager instance and mostly
manipulates its state. So it seemed fitting to move it over.
2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer bb46e53667 SUPERNOVA: Processes all keyboard queries in processInput() 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 9689dffca9 SUPERNOVA: Removes mouseInput3()
The function highlights dialog choices depending on the mouse position
and loops till a mouse button is pressed.
Since it is used in GameManager::dialog() only, inlining it seems
reasonable, especially as the name was not descriptive in the first
place.
2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 7dab7b775b SUPERNOVA: Renames wait2() to wait() 2018-04-14 11:45:52 +02:00
Joseph-Eugene Winzer 80be48c42d SUPERNOVA: Removes redundant keypress check
GameManager::processInput() already does the job
2018-04-14 11:45:52 +02:00
Adrian Frühwirth 00e59a3122 ALL: Load savegame thumbnail only when necessary
This commit introduces the following changes:

1. Graphics::loadThumbnail()

   Now returns a boolean and takes a new argument skipThumbnail which
   defaults to false. In case of true, loadThumbnail() reads past the
   thumbnail data in the input stream instead of actually loading the
   thumbnail. This simplifies savegame handling where, up until now,
   many engines always read the whole savegame metadata (including
   the thumbnail) and then threw away the thumbnail when not needed
   (which is in almost all cases, the most common exception being
   MetaEngine::querySaveMetaInfos() which is responsible for loading
   savegame metadata for displaying it in the GUI launcher.

2. readSavegameHeader()

   Engines which already implement such a method (name varies) now take
   a new argument skipThumbnail (default: true) which is passed
   through to loadThumbnail(). This means that the default case for
   readSavegameHeader() is now _not_ loading the thumbnail from a
   savegame and just reading past it. In those cases, e.g.
   querySaveMetaInfos(), where we actually are interested in loading
   the thumbnail readSavegameHeader() needs to explicitely be called
   with skipThumbnail == false.

   Engines whose readSavegameHeader() (name varies) already takes an
   argument loadThumbnail have been adapted to have a similar
   prototype and semantics.
   I.e. readSaveHeader(in, loadThumbnail, header) now is
   readSaveHeader(in, header, skipThumbnail).

3. Error handling

   Engines which previously did not check the return value of
   readSavegameHeader() (name varies) now do so ensuring that possibly
   broken savegames (be it a broken thumbnail or something else) don't
   make it into the GUI launcher list in the first place.
2018-04-07 09:26:20 +02:00
Adrian Frühwirth 9645f7f721 JANITORIAL: Silence GCC 7 fallthrough warning
Confirmed intentional by Joefish.
2018-03-23 20:00:27 +01:00
Joseph-Eugene Winzer 392db4ed33 SUPERNOVA: Fixes formatting 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 61fb88ef20 SUPERNOVA: Removes TODO for quitGameDialog() 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 7fab63f297 SUPERNOVA: Recenters animated text on loop 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 78e4a162ab SUPERNOVA: Removes unused function 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 53af82785e SUPERNOVA: Substitues constant strings 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer bb9bfcba4a SUPERNOVA: Encapsulates GuiElement
It simplifies the overloaded functions for renderBox/Text and saveScreen
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 7f5cea54e3 SUPERNOVA: Implements original quit prompt 2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer a38db245ed SUPERNOVA: Fixes formatting
Because of confusion when indentation level is raised and thus tabs or
spaces should be used when aligning code, this commit switches to tabs
to avoid any further confusion.
2018-03-11 23:25:00 +01:00
Joseph-Eugene Winzer 0770800844 SUPERNOVA: Removes Console commands
Most of them were for debugging only anyway and commands like `giveall`
actually broke parts of the game (and didn't even give you all items).
2018-03-11 23:25:00 +01:00