22 #ifndef NANCY_ACTION_RAYCASTPUZZLE_H 23 #define NANCY_ACTION_RAYCASTPUZZLE_H 25 #include "engines/nancy/action/actionrecord.h" 33 class RaycastDeferredLoader;
34 class RaycastLevelBuilder;
38 friend class RaycastDeferredLoader;
39 friend class RaycastLevelBuilder;
45 void registerGraphics()
override;
48 void execute()
override;
49 void onPause(
bool pause)
override;
51 void updateGraphics()
override;
54 Common::String getRecordTypeName()
const override {
return "RaycastPuzzle"; }
55 bool isViewportRelative()
const override {
return true; }
70 uint16 _mapHeight = 0;
74 uint16 _switchSoundChannelID = 0;
76 uint16 _unknownSoundChannelID = 0;
87 uint16 _mapFullWidth = 0;
88 uint16 _mapFullHeight = 0;
93 double _pi = 3.141592653589793;
105 byte _lastZDepth = 0;
107 int32 _leftmostAngle = -1;
108 int32 _rightmostAngle = -1;
113 int32 _playerRotation = 0;
114 uint32 _playerAltitude = 88;
116 float _rotationSingleStep = 4096.0 / (_pi * 2);
117 float _maxWorldDistance = 0.0;
119 uint32 _lastMovementTime = 0;
120 int _lastMouseX = -1;
122 uint32 _nextSlowdownMovementTime = 0;
123 byte _slowdownFramesLeft = 0;
124 int32 _slowdownDeltaX = -1;
125 int32 _slowdownDeltaY = -1;
130 int _lightSwitchPlayerIsOn = -1;
132 const RCPR *_puzzleData =
nullptr;
139 #endif // NANCY_ACTION_RAYCASTPUZZLE_H Definition: managed_surface.h:51
Definition: raycastpuzzle.h:37
Definition: commontypes.h:171
Definition: actionrecord.h:149
Definition: renderobject.h:36
Definition: enginedata.h:427
Definition: commontypes.h:254
Definition: actionmanager.h:32