aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/camera_mover.h
diff options
context:
space:
mode:
authorDavid Fioramonti2017-08-28 19:28:15 -0700
committerDavid Fioramonti2017-08-30 19:53:13 -0700
commit8f479522c4bf53616c785099d516d350f8fad94c (patch)
treea871507ee1325db2c323f8876d1985eefdfa5bf8 /engines/titanic/star_control/camera_mover.h
parentd1325e2d12ec2b7f9e12381f3e62e94897d5b57c (diff)
downloadscummvm-rg350-8f479522c4bf53616c785099d516d350f8fad94c.tar.gz
scummvm-rg350-8f479522c4bf53616c785099d516d350f8fad94c.tar.bz2
scummvm-rg350-8f479522c4bf53616c785099d516d350f8fad94c.zip
TITANIC: CCameraMover and related classes Refactor
1. Removed updatePosition function defintions since UnmarkedCameraMover and MarkedCameraMover, derived classes, are overriddening it. I.e., CCameraMover::updatePosition doesn't get used. This also allowed some header files to removed. 2. Renaming of some functions.
Diffstat (limited to 'engines/titanic/star_control/camera_mover.h')
-rw-r--r--engines/titanic/star_control/camera_mover.h36
1 files changed, 23 insertions, 13 deletions
diff --git a/engines/titanic/star_control/camera_mover.h b/engines/titanic/star_control/camera_mover.h
index 9bd9d48700..3d72e01c8c 100644
--- a/engines/titanic/star_control/camera_mover.h
+++ b/engines/titanic/star_control/camera_mover.h
@@ -23,10 +23,6 @@
#ifndef TITANIC_CAMERA_MOVER_H
#define TITANIC_CAMERA_MOVER_H
-//#include "titanic/support/simple_file.h"
-//#include "titanic/star_control/error_code.h"
-//#include "titanic/star_control/fmatrix.h" // class FVector
-
namespace Titanic {
class CErrorCode;
@@ -58,6 +54,19 @@ public:
virtual void copyTo(CNavigationInfo *dest);
/**
+ * delete _starVector
+ */
+ virtual void clear();
+ /**
+ * Set default values for CNavigationInfo
+ */
+ virtual void reset();
+
+ /**
+ * Sets this CStarVector
+ */
+ virtual void setVector(CStarVector *sv);
+ /**
* Increases movement speed in forward direction
*/
virtual void increaseForwardSpeed();
@@ -77,7 +86,11 @@ public:
*/
virtual void stop();
- virtual void proc8(const FVector &oldPos, const FVector &newPos,
+ /**
+ * Move the mover from an old position and orientation to a new
+ * position and orientation
+ */
+ virtual void transitionBetweenPosOrients(const FVector &oldPos, const FVector &newPos,
const FMatrix &oldOrientation, const FMatrix &newOrientation) {}
/**
@@ -85,19 +98,16 @@ public:
*/
virtual void moveTo(const FVector &srcV, const FVector &destV, const FMatrix &orientation) {}
- virtual void proc10(const FVector &v1, const FVector &v2, const FVector &v3, const FMatrix &m) {}
-
/**
- * Update the passed position and orientation matrix
+ * First two vectors are used to form a new orientation that gets transitioned to from the old
+ * orientation m.
*/
- virtual void updatePosition(CErrorCode &errorCode, FVector &pos, FMatrix &orientation);
-
- virtual void setVector(CStarVector *sv);
+ virtual void transitionBetweenOrientations(const FVector &v1, const FVector &v2, const FVector &v3, const FMatrix &m) {}
/**
- * Clear the class
+ * Update the passed position and orientation matrix
*/
- virtual void clear();
+ virtual void updatePosition(CErrorCode &errorCode, FVector &pos, FMatrix &orientation) {}
/**
* Load the class