aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/rooms.cpp
AgeCommit message (Collapse)Author
2018-01-23SUPERNOVA: Removes redundant codeJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Removes redundant loops around edit()Joseph-Eugene Winzer
2018-01-23SUPERNOVA: Renames ObjectID 'SLOT'Joseph-Eugene Winzer
2018-01-23SUPERNOVA: Converts special charactersJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Corrects GameState variable namesJoseph-Eugene Winzer
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-23SUPERNOVA: Fixes terminal in sleeping chamberJoseph-Eugene Winzer
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-23SUPERNOVA: Corrects variables according to naming conventionJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Implements the remaining room definitionsJoseph-Eugene Winzer
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-23SUPERNOVA: Fixes codeJoseph-Eugene Winzer
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-23SUPERNOVA: Replaces longjmp to 'dead'Joseph-Eugene Winzer
2018-01-23SUPERNOVA: Substitues umlauts with their cp437 octal equivalentJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Fixes SleepCabin::animation()Joseph-Eugene Winzer
Some of the code didn't belong into the function.
2018-01-23SUPERNOVA: Input handlingJoseph-Eugene Winzer
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-23SUPERNOVA: Rewrites animation for Cockpit and SleepCabinJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Implements showing cockpit monitorJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Adds definitions for remaining roomsJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Refactors room definitionsJoseph-Eugene Winzer
Calling renderImage() directly causes unintended side effects since e9d7b7ca0f as drawImage() besides rendering also set visibility flags.
2018-01-22SUPERNOVA: Implements GUI routines and refactors codeJoseph-Eugene Winzer
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-22SUPERNOVA: Buffers audio samples on startupJoseph-Eugene Winzer
2018-01-22SUPERNOVA: ReformattingJoseph-Eugene Winzer
Substitute size_t with ScummVM defined uint type
2018-01-22SUPERNOVA: Adds missing copyright notesJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds room specific game logicJoseph-Eugene Winzer
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).