Commit Graph
119 Commits
Author SHA1 Message Date
Joseph-Eugene Winzer cd01ca0ad3 SUPERNOVA: Converts special characters 2018-01-23 01:42:32 +00:00
Joseph-Eugene Winzer a24af98b5e SUPERNOVA: Corrects GameState variable names
According to the naming convention class member variables need to be
prefixed with an underscore.
Unfortunately, I already started converting time constants when making
this change so ticksToMsec() and constant changes are sprinkled over
this commit.
2018-01-23 01:42:32 +00:00
Joseph-Eugene Winzer c8e0f94fd1 SUPERNOVA: Fixes terminal in sleeping chamber
Instead of manipulating C-Strings edit() now takes a Common::String as a
parameter and the terminal input gets redrawn after every keystroke what
simplifies the function greatly.
2018-01-23 01:33:24 +00:00
Joseph-Eugene Winzer cac51759f7 SUPERNOVA: Corrects variables according to naming convention 2018-01-23 01:33:24 +00:00
Joseph-Eugene Winzer 1797b174c7 SUPERNOVA: Implements the remaining room definitions
While it compiles, it is still WIP.
Also there has been some confusion about the numbering of the
AxacussCorridor classes among other things that need to be done.
2018-01-23 01:33:01 +00:00
Joseph-Eugene Winzer 7c13706d28 SUPERNOVA: Fixes code
kMaxSection - 1 was used in the original code to indicate if the GUI is
currently shown. In this engine an explicit variable _guiEnabled is
used.
2018-01-23 01:01:19 +00:00
Joseph-Eugene Winzer aa0606beed SUPERNOVA: Replaces longjmp to 'dead' 2018-01-23 01:01:19 +00:00
Joseph-Eugene Winzer d4c8fe528a SUPERNOVA: Substitues umlauts with their cp437 octal equivalent 2018-01-23 01:01:19 +00:00
Joseph-Eugene Winzer 8e9141d516 SUPERNOVA: Fixes SleepCabin::animation()
Some of the code didn't belong into the function.
2018-01-23 01:01:19 +00:00
Joseph-Eugene Winzer 99d7e7c1f6 SUPERNOVA: Input handling
GetKeyInput/MouseInput/Input() block until the expected input happens.
GetKeyInput() takes a parameter that checks if the key input is a
'printable' character, backspace, delete, return or escape.
Also, the key state is now stored instead of just the ascii value of the
pressed key.
2018-01-23 01:01:10 +00:00
Joseph-Eugene Winzer 4227195a82 SUPERNOVA: Rewrites animation for Cockpit and SleepCabin 2018-01-23 00:28:29 +00:00
Joseph-Eugene Winzer daf55369a9 SUPERNOVA: Implements showing cockpit monitor 2018-01-23 00:28:29 +00:00
Joseph-Eugene Winzer 02995da224 SUPERNOVA: Adds definitions for remaining rooms 2018-01-23 00:28:22 +00:00
Joseph-Eugene Winzer 5224c4d313 SUPERNOVA: Refactors room definitions
Calling renderImage() directly causes unintended side effects since
e9d7b7ca0f as drawImage() besides rendering also set visibility flags.
2018-01-23 00:00:11 +00:00
Joseph-Eugene Winzer 30308fbe8d SUPERNOVA: Implements GUI routines and refactors code
Of course the short description does not adequately describe the changes
made with this commit and I assume this won't be the last big
restructuring unfortunately.

Focus of this commit was to implement/fix the code so the main user
interface can be rendered. Bugs in the core routines for rendering
Messages and Images were fixed as well.
2018-01-22 23:54:26 +00:00
Joseph-Eugene Winzer cd080b820a SUPERNOVA: Buffers audio samples on startup 2018-01-22 23:42:08 +00:00
Joseph-Eugene Winzer 6c4768a051 SUPERNOVA: Reformatting
Substitute size_t with ScummVM defined uint type
2018-01-22 23:42:07 +00:00
Joseph-Eugene Winzer 38e9e2d3e7 SUPERNOVA: Adds missing copyright notes 2018-01-22 23:34:49 +00:00
Joseph-Eugene Winzer 932b3669d3 SUPERNOVA: Adds room specific game logic
This is the game logic for the first act of the game.
It will see restructuring to remove gotos/jumps and hardcoded
differences in game behavior depending on settings (e.g. sound on/off).
2018-01-22 23:34:49 +00:00