28 #ifndef WINTERMUTE_ADSCENE_H 29 #define WINTERMUTE_ADSCENE_H 31 #include "engines/wintermute/base/base_fader.h" 41 class AdWaypointGroup;
47 class AdSceneGeometry;
53 uint32 _ambientLightColor;
54 TShadowType _maxShadowType;
55 bool _scroll3DCompatibility;
73 void setMaxShadowType(TShadowType shadowType);
79 int32 _editorResolutionWidth;
80 int32 _editorResolutionHeight;
82 bool getRegionsAt(
int x,
int y,
AdRegion **regionList,
int numRegions);
83 bool handleItemAssociations(
const char *itemName,
bool show);
85 float getRotationAt(
int x,
int y);
88 bool _persistentState;
89 bool _persistentStateSprites;
91 void setOffset(
int offsetLeft,
int offsetTop);
92 bool pointInViewport(
int x,
int y);
95 bool getViewportSize(int32 *width =
nullptr, int32 *height =
nullptr);
96 bool getViewportOffset(int32 *offsetX =
nullptr, int32 *offsetY =
nullptr);
100 void pfPointsAdd(
int x,
int y,
int distance);
101 void pfPointsStart();
103 bool correctTargetPoint(int32 startX, int32 startY, int32 *x, int32 *y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr);
104 bool correctTargetPoint2(int32 startX, int32 startY, int32 *targetX, int32 *targetY,
bool checkFreeObjects,
BaseObject *requester);
106 bool displayRegionContent(
AdRegion *region =
nullptr,
bool display3DOnly =
false);
107 bool displayRegionContentOld(
AdRegion *region =
nullptr);
110 bool updateFreeObjects();
111 bool traverseNodes(
bool update =
false);
112 float getScaleAt(
int y);
113 bool sortScaleLevels();
114 bool sortRotLevels();
120 uint32 getAlphaAt(
int x,
int y,
bool colorCheck =
false);
121 bool _paralaxScrolling;
122 void skipTo(
int offsetX,
int offsetY);
127 void scrollTo(
int offsetX,
int offsetY);
128 bool update()
override;
130 int32 _targetOffsetTop;
131 int32 _targetOffsetLeft;
133 int32 _scrollPixelsV;
137 int32 _scrollPixelsH;
141 bool display()
override;
144 void pathFinderStep();
145 bool isBlockedAt(
int x,
int y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr);
146 bool isWalkableAt(
int x,
int y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr);
148 float getZoomAt(
int x,
int y);
155 bool loadFile(
const char *filename);
156 bool loadBuffer(
char *buffer,
bool complete =
true);
160 bool removeObject(
AdObject *Object);
161 int32 _editorMarginH;
162 int32 _editorMarginV;
163 uint32 _editorColFrame;
164 uint32 _editorColEntity;
165 uint32 _editorColRegion;
166 uint32 _editorColBlocked;
167 uint32 _editorColWaypoints;
168 uint32 _editorColEntitySel;
169 uint32 _editorColRegionSel;
170 uint32 _editorColBlockedSel;
171 uint32 _editorColWaypointsSel;
172 uint32 _editorColScale;
173 uint32 _editorColDecor;
174 uint32 _editorColDecorSel;
176 bool _editorShowRegions;
177 bool _editorShowBlocked;
178 bool _editorShowDecor;
179 bool _editorShowEntities;
180 bool _editorShowScale;
184 bool restoreDeviceObjects()
override;
189 bool scSetProperty(
const char *name,
ScValue *value)
override;
191 const char *scToString()
override;
195 bool persistState(
bool saving =
true);
Definition: base_game.h:75
Definition: base_point.h:36
Definition: script_value.h:42
Definition: ad_object.h:46
Definition: ad_scene.h:49
Definition: ad_region.h:35
Definition: base_dynamic_buffer.h:35
Definition: ad_layer.h:33
Definition: script_stack.h:41
Definition: ad_scene_geometry.h:50
Definition: base_fader.h:36
Definition: coll_templ.h:63
Definition: ad_waypoint_group.h:35
Definition: base_viewport.h:38
Definition: ui_window.h:39
Definition: base_object.h:57
Definition: achievements_tables.h:27