aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_view.cpp
AgeCommit message (Collapse)Author
2017-09-27TITANIC: Fix memory leak in CStarViewPaul Gilbert
2017-08-31TITANIC: Don't allow unlocking stars while locking onto a starDavid Fioramonti
Fixes #10170. I've added a boolean variable that tracks whether the game is in the process of locking onto a star or not. When the user hits the unlock button _isInLockingProcess gets checked and the request to unlock is denied if the locking on is currently happening. Once the locking on is finished then the release is lifted and the user can unlock at this time (or after locking onto the next star).
2017-08-30TITANIC: Formatting fixes for viewport refactoringPaul Gilbert
2017-08-27TITANIC: Refactoring of Viewport classDavid Fioramonti
1. Improved naming of functions. E.x., fn17 is now called getRelativePosNoCentering 2. Improved variable names E.x., _valArray[3] is now _pixel1OffSetX, naming makes sense for it use in CBaseStars::draw. 3. Lots of comments and TODO added for suspicious behavior Mentioned unused functions and values that don't get used. 4. Changes in other classes that viewport renaming affected Some of the star_camera functions were 1-1 mapping of functions in viewport so I just made the names be the same.
2017-08-24TITANIC: Reduce header includes for star_control filesDavid Fioramonti
Minimized a lot of the unncessary files includes in the implementation files as well.
2017-08-20TITANIC: Prevent 2 star locking for large distancesDavid Fioramonti
I have added a conditional to the code so that if the player tries to lock onto the 2nd star and they are very far away, >1e8, then the game will not allow the star to be locked. This is a temporary workaround since if a distance of farther then this is attempted then the view will be throw way off and the stars will not be shown locking onto correctly. I've also made the locking functions return booleans so I can determine the success of the lockings. This is a partial fix for #9961.
2017-08-18TITANIC: Renamed functions that adds/removes stars/markersDavid Fioramonti
Before it was add/remove row so the new name is more informative.
2017-08-18TITANIC: Simplified dependencies for classes related to star_cameraDavid Fioramonti
This involved removing header files and forward declaring when possible. I also reorded the header include files to be local to gloabal. E.x., in the class implementation the class header file would be the first included. This is a first pass of header reduction for star_control/ files
2017-08-16TITANIC: Unmarked starviewer, fix, key directionsDavid Fioramonti
Changing the fpose Y axis rotations flipped some of the keys (z,x) so I added in negatives to fix that. Also before slash was looking up and comma was looking down. This is the same as the original, but I think thats less intuitive so I have reversed that. It also makes those keys now correct in the readme.
2017-08-06Merge pull request #983 from dafioram/titanic_starview_addReversePaul Gilbert
TITANIC: Change Starview slowdown to reverse
2017-08-06TITANIC: Change Starview slowdown to reverseDavid Fioramonti
This changes the starview manual camera movement using semicolon. Before it slowed down the ship. To make it more like the original game it now adds negative velocity so that it slows down then speeds up in the backward direction. The functions were renamed accordingly.
2017-08-06TITANIC: Bring movement rates in the starfield closer to the originalPaul Gilbert
The original updated the camera during the general scene drawing, which was done at a much higher rate than I wanted for the ScummVM implementation. So I've added this workaround to update the camera every 10ms when the player is in the star control scene. This gives it a comparible rate of movement to the original.
2017-08-06TITANIC: Minor renamings in CStarViewPaul Gilbert
2017-07-30TITANIC: Star View: Added keyboard key to look upDavid Fioramonti
2017-07-29TITANIC: Fix Satrfield crash using Tab without having inserted photoPaul Gilbert
2017-07-15TITANIC: Fix locking stars in star control puzzle when Caps lock is onPaul Gilbert
2017-06-04TITANIC: Renamings for the individual lock marker methodsPaul Gilbert
2017-06-02TITANIC: Minor cleanups in vector/matrix calculationsPaul Gilbert
2017-06-02TITANIC: Fix calculations in CStarCamera fn2Paul Gilbert
2017-06-01TITANIC: Fix some calculation errors when locking markersPaul Gilbert
2017-05-31TITANIC: Renamings for locking/unlocking markersPaul Gilbert
2017-05-30TITANIC: Cleanup & fixes for starfield viewpoint boxPaul Gilbert
2017-05-30TITANIC: Renamings and further fixes for CPhotoCrosshairsPaul Gilbert
2017-05-28TITANIC: Fix crash switching from starfield to photo displayPaul Gilbert
2017-05-28TITANIC: Rename CStarControlSub8 to CPhotoCrosshairsPaul Gilbert
2017-05-28TITANIC: Renamings for photo surfacePaul Gilbert
2017-05-28TITANIC: Renamings of orientation related variables and methodsPaul Gilbert
2017-04-17TITANIC: Renamings for CCameraMover fields and methodsPaul Gilbert
2017-04-16TITANIC: Further positioning renamesPaul Gilbert
2017-04-16TITANIC: Renaming of camera setting position & orientationPaul Gilbert
2017-04-16TITANIC: Extra debugging info for starfield movementPaul Gilbert
2017-04-16TITANIC: Renamed CStarControlSub20 to CCameraMoverPaul Gilbert
2017-04-09TITANIC: Rename CStarControlSub12 to CStarCameraPaul Gilbert
2017-04-05TITANIC: Further cleanup of pose usagesPaul Gilbert
2017-04-05TITANIC: Renamed CStarControlSub6 to FPosePaul Gilbert
2017-04-05TITANIC: Change many doubles to floats to match original's precisionPaul Gilbert
Many of the Star Control classes in the original explicitly used floats rather than doubles. I'm switching to using them where applicable for now, since the resulting figures will more closely match the original, and it will be easier to spot errors in the various formulas
2017-04-04TITANIC: Correct usage of x/y angle in setViewportPositionPaul Gilbert
2017-04-02TITANIC: Temporarily hard-code random vectors to ease debugginPaul Gilbert
2017-04-01TITANIC: Fix incorrect function parameterPaul Gilbert
2017-03-31TITANIC: Renaming of crosshairs related codePaul Gilbert
2017-03-31TITANIC: Merge fader classes into one, video surface setup fixPaul Gilbert
2017-03-28TITANIC: Workaround original bug in CStarView fn18Paul Gilbert
The original accessed the raw pixels ptr of a video surface after it had been unlocked
2017-03-28TITANIC: Add missing state reset in CStarView fn18Paul Gilbert
2017-03-26TITANIC: Fix loading of CStarView classPaul Gilbert
2017-03-25TITANIC: Fixes to CStarView classPaul Gilbert
2017-03-20TITANIC: Implemented CStarControlSub12 matrix row handlingPaul Gilbert
2017-03-12TITANIC: More matrix renamingsPaul Gilbert
2017-03-12TITANIC: More matrix renamings, thanks to Dark-StarPaul Gilbert
2017-03-11TITANIC: Implementing CStarControlSub13 classPaul Gilbert
2017-03-05TITANIC: Added remainder of CStarView classPaul Gilbert