22 #ifndef WATCHMAKER_DO_CAMERA_H 23 #define WATCHMAKER_DO_CAMERA_H 25 #include "watchmaker/t3d.h" 26 #include "watchmaker/globvar.h" 27 #include "watchmaker/game.h" 33 static const int MAX_CAMERA_STEPS = 500;
35 t3dCAMERA FirstPersonCamera, *DestCamera, *LastCamera, CameraCarrello;
36 t3dCAMERA CameraStep[MAX_CAMERA_STEPS], AnimCamera;
37 int16 CurCameraSubStep = 0, CurCameraStep = 0, NumCameraSteps = 0;
38 t3dV3F OldCameraTarget, OldPlayerDir, FirstPersonTarget;
39 t3dV3F SourceBlend, TargetBlend;
42 uint8 bForceDirectCamera =
false, bCameraCarrello =
false;
44 uint8 t3dCurCameraIndex = 255;
45 uint8 t3dLastCameraIndex = 255;
47 void NextCameraStep(
WGame &game);
48 void HandleCameraCarrello(
t3dBODY *croom);
51 t3dF32 CamAngleX, CamAngleY;
54 void resetLastCameraIndex() { t3dLastCameraIndex = 255; }
55 uint8 getCurCameraIndex() {
return t3dCurCameraIndex; }
57 void MoveHeadAngles(t3dF32 diffx, t3dF32 diffy);
58 void GetCameraTarget(
Init &init,
t3dV3F *Target);
60 void doCamera(
WGame &game);
61 void GetRealCharPos(
Init &init,
t3dV3F *Target, int32 oc, uint8 bn);
62 void ResetCameraTarget();
63 void ResetCameraSource();
64 void ProcessCamera(
WGame &game);
65 uint8 GetCameraIndexUnderPlayer(int32 pl);
66 void StartAnimCamera(
WGame &game);
73 #endif // WATCHMAKER_DO_CAMERA_H
Definition: 2d_stuff.h:30
Definition: globvar.h:199
Definition: t3d_body.h:32
Definition: do_camera.h:31