aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/state.cpp
AgeCommit message (Collapse)Author
2018-06-29SUPERNOVA: Fix warningEugene Sandulenko
2018-04-22JANITORIAL: Fix formattingAdrian Frühwirth
2018-04-15SUPERNOVA: Removes global nullObjectJoseph-Eugene Winzer
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-15SUPERNOVA: Fixes type camel caseJoseph-Eugene Winzer
2018-04-15SUPERNOVA: Implements render functionsJoseph-Eugene Winzer
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-15SUPERNOVA: Renames MSNImageDecoder to MSNImageJoseph-Eugene Winzer
2018-04-14SUPERNOVA: Adds sound abstractionJoseph-Eugene Winzer
2018-04-14SUPERNOVA: Renames _timer1 to _messageDurationJoseph-Eugene Winzer
2018-04-14SUPERNOVA: Removes TODOJoseph-Eugene Winzer
2018-04-14SUPERNOVA: Moves updateEvents() to GameManagerJoseph-Eugene Winzer
updatEvents() depends on an initalized GameManager instance and mostly manipulates its state. So it seemed fitting to move it over.
2018-04-14SUPERNOVA: Processes all keyboard queries in processInput()Joseph-Eugene Winzer
2018-04-14SUPERNOVA: Removes mouseInput3()Joseph-Eugene Winzer
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-14SUPERNOVA: Renames wait2() to wait()Joseph-Eugene Winzer
2018-03-11SUPERNOVA: Removes unused functionJoseph-Eugene Winzer
2018-03-11SUPERNOVA: Encapsulates GuiElementJoseph-Eugene Winzer
It simplifies the overloaded functions for renderBox/Text and saveScreen
2018-03-11SUPERNOVA: Implements original quit promptJoseph-Eugene Winzer
2018-03-11SUPERNOVA: Fixes formattingJoseph-Eugene Winzer
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-11SUPERNOVA: Implements animated text during in/outroJoseph-Eugene Winzer
2018-01-31SUPERNOVA: Mark intentional fallthrough in switchThierry Crozat
2018-01-31SUPERNOVA: Improve command button size for translationsThierry Crozat
2018-01-30SUPERNOVA: Ensure the GuiElement _text field is null terminatedThierry Crozat
This was reported by coverity (CID 1385566), and althought this was unlikely to happen, it was not impossible (due to the translations).
2018-01-30SUPERNOVA: Fix out of bound access when exiting the engine while in a dialogThierry Crozat
This was reported by coverity (CID 1385572).
2018-01-23SUPERNOVA: Handle RTL and Quit while editing textThierry Crozat
2018-01-23SUPERNOVA: Fix missing reset of object CARRIED flag when clearing inventoryThierry Crozat
2018-01-23SUPERNOVA: Renames INT32_MAX to kMaxTimerValueJoseph-Eugene Winzer
Prevents collision with stdint.h INT32_MAX
2018-01-23SUPERNOVA: Changes message orderJoseph-Eugene Winzer
When taking off your helmet or life support in a room without oxygen, it showed the death screen before the 'taking off helmet/life support' message.
2018-01-23SUPERNOVA: Moves strings to GameManager classJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Prevents paletteFadeIn() to be triggeredJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Reverts brightness changeJoseph-Eugene Winzer
If the brightness is 0, it is faded in at the end of the game loop. In some instances, especially cutscenes, it makes the code harder to understand as in somecases the code expects the brightness to be faded in after having it faded out, set manually to 0 or when you leave a dark room, set by roomBrightness(). Removing it now, would just lead to more confusion during the port of Supernova part 2.
2018-01-23SUPERNOVA: Fixes object state updateJoseph-Eugene Winzer
In order to trigger a mouseField change in processInput(), we move the cursor to 0,0 first before restoring its original position.
2018-01-23SUPERNOVA: Pushes a mousemove to update object stateJoseph-Eugene Winzer
If you click on an exit on the map and there is again an exit on the same spot, it won't be recognized until the next mouse move/click. This change fakes a mouse move and thus updates the object state.
2018-01-23SUPERNOVA: Returns to launcher after outroJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Updates palette when changing room brightnessJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Renames audio constantsJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Renames audio constantsJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Fixes inventory scrollingJoseph-Eugene Winzer
Correctly moves inventory view when items are added/removed/cleared
2018-01-23SUPERNOVA: Implements money object for inventoryJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Sets CARRIED flag when added to inventoryJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Introduces INT32_MAX for eventTimeJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Corrects max value for int32Joseph-Eugene Winzer
2018-01-23SUPERNOVA: Registers cmdButton clicksJoseph-Eugene Winzer
Mouse clicks were consumed if a message was shown. This commit introduces an exception for clicks on command buttons. Also some refactoring.
2018-01-23SUPERNOVA: Disables OCCUPIED flag correctlyJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Save/restore _playerHidden flag in savegamesThierry Crozat
2018-01-23SUPERNOVA: Fixes game freeze in bcorrdiorJoseph-Eugene Winzer
Most of the time _objectState[MAX_OBJECT - 1] was used for showing/hiding the GUI, here it was to indicate if the player is currently hidden behind a pillar though.
2018-01-23SUPERNOVA: Fix calling onEntrance for new roomsThierry Crozat
There was an issue when the onEntrance for one room changes the current room. It would then fail to call onEntrance for that new room. This happened at lest once at the start as the Intro room onEntrance() changes to the first room at the end if the intro cutscene.
2018-01-23SUPERNOVA: Only call onEntrace once after changing roomThierry Crozat
2018-01-23SUPERNOVA: Remove unused function variantThierry Crozat
2018-01-23SUPERNOVA: Sets sections in the correct roomJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Implement dialogs with variable textThierry Crozat
This was partially implemented but not finished. However I reverted the changes already done to support that in order to use a different approach.
2018-01-23SUPERNOVA: Some cleanup, simplify some codeStrangerke