aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_camera.h
AgeCommit message (Collapse)Author
2018-05-24JANITORIAL: Fix trailing whitespaceAdrian Frühwirth
2017-09-07TITANIC: star camera better handler function namingDavid Fioramonti
The functions that dealt with the mover handling only had handler in the name so I added mover and type to the name to reflect that it involves the mover handler.
2017-09-07TITANIC: star control, removed todos and improved some commentsDavid Fioramonti
2017-09-01TITANIC: Replace all external uses of DVector with FVectorDavid Fioramonti
Wherever DVector was used outside of DAffine and CMatrixTransform I replaced with FVectors. So Internally those functions are still using DVectors. This required adding some new functions to FVector that duplicated functionality in DVector.
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: StarCamera separate function for calculating angleDavid Fioramonti
This makes lockMarker2 more manageable.
2017-08-30TITANIC: StarCamera workDavid Fioramonti
2017-08-30Merge pull request #1001 from dafioram/viewport_refactorPaul Gilbert
TITANIC: Viewport refactor
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-26TITANIC: Fix another struct vs class warningPaul Gilbert
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-20TITANIC: Further camera and crosshair classes cleanupPaul Gilbert
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-18TITANIC: Change variable for tracking stars marked into enumDavid Fioramonti
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-07-12TITANIC: Rename DMatrix to DAffine, thanks to wjpPaul Gilbert
2017-06-04TITANIC: Renamings for the individual lock marker methodsPaul Gilbert
2017-06-04TITANIC: Fix saving locked marker vectors into camera rotation matrixPaul Gilbert
2017-05-30TITANIC: Renamings & cleanup for markers drawingPaul 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: Renaming for viewport position poses and access methodsPaul Gilbert
2017-04-16TITANIC: Rename CStarControlSub13 to CViewportPaul Gilbert
2017-04-16TITANIC: Extra debugging info for starfield movementPaul Gilbert
2017-04-16TITANIC: Renamed CStarControlSub20 to CCameraMoverPaul Gilbert
2017-04-15TITANIC: Renaming methods for setting camera movementPaul Gilbert
2017-04-09TITANIC: Renaming of CStarCamera methodsPaul Gilbert
2017-04-09TITANIC: Rename CStarControlSub12 to CStarCameraPaul Gilbert