28#ifndef WINTERMUTE_ADSCENE_H
29#define WINTERMUTE_ADSCENE_H
31#include "engines/wintermute/base/base_fader.h"
54 uint32 _ambientLightColor;
55 TShadowType _maxShadowType;
56 bool _scroll3DCompatibility;
82 int32 _editorResolutionWidth;
83 int32 _editorResolutionHeight;
87 bool getRegionsAt(
int x,
int y,
AdRegion **regionList,
int numRegions);
88 bool handleItemAssociations(
const char *itemName,
bool show);
90 float getRotationAt(
int x,
int y);
93 bool _persistentState;
94 bool _persistentStateSprites;
96 void setOffset(
int offsetLeft,
int offsetTop);
97 bool pointInViewport(
int x,
int y);
100 bool getViewportSize(int32 *width =
nullptr, int32 *height =
nullptr);
101 bool getViewportOffset(int32 *offsetX =
nullptr, int32 *offsetY =
nullptr);
105 void pfPointsAdd(
int x,
int y,
int distance);
106 void pfPointsStart();
108 bool correctTargetPoint(int32 startX, int32 startY, int32 *x, int32 *y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr);
109 bool correctTargetPoint2(int32 startX, int32 startY, int32 *targetX, int32 *targetY,
bool checkFreeObjects,
BaseObject *requester);
111 bool displayRegionContent(
AdRegion *region =
nullptr,
bool display3DOnly =
false);
112 bool displayRegionContentOld(
AdRegion *region =
nullptr);
113 static int32 compareObjs(
const void *obj1,
const void *obj2);
115 bool updateFreeObjects();
116 bool traverseNodes(
bool update =
false);
117 float getScaleAt(
int y);
118 bool sortScaleLevels();
119 bool sortRotLevels();
125 uint32 getAlphaAt(
int x,
int y,
bool colorCheck =
false);
126 bool _paralaxScrolling;
127 void skipTo(
int offsetX,
int offsetY);
132 void scrollTo(
int offsetX,
int offsetY);
133 bool update()
override;
135 int32 _targetOffsetTop;
136 int32 _targetOffsetLeft;
138 int32 _scrollPixelsV;
142 int32 _scrollPixelsH;
146 bool display()
override;
149 void pathFinderStep();
156 bool isBlockedAt(
int x,
int y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr,
bool defaultBlock =
true);
157 bool isWalkableAt(
int x,
int y,
bool checkFreeObjects =
false,
BaseObject *requester =
nullptr);
159 float getZoomAt(
int x,
int y);
166 bool loadFile(
const char *filename);
167 bool loadBuffer(
char *buffer,
bool complete =
true);
171 bool removeObject(
AdObject *
object);
172 int32 _editorMarginH;
173 int32 _editorMarginV;
174 uint32 _editorColFrame;
175 uint32 _editorColEntity;
176 uint32 _editorColRegion;
177 uint32 _editorColBlocked;
178 uint32 _editorColWaypoints;
179 uint32 _editorColEntitySel;
180 uint32 _editorColRegionSel;
181 uint32 _editorColBlockedSel;
182 uint32 _editorColWaypointsSel;
183 uint32 _editorColScale;
184 uint32 _editorColDecor;
185 uint32 _editorColDecorSel;
187 bool _editorShowRegions;
188 bool _editorShowBlocked;
189 bool _editorShowDecor;
190 bool _editorShowEntities;
191 bool _editorShowScale;
195 bool restoreDeviceObjects()
override;
196 void setMaxShadowType(TShadowType shadowType);
199 void onLayerResized(
AdLayer *layer);
202 ScValue *scGetProperty(
const char *name)
override;
203 bool scSetProperty(
const char *name,
ScValue *value)
override;
205 const char *scToString()
override;
210 bool persistState(
bool saving =
true);
Definition: ad_layer.h:33
Definition: ad_object.h:46
Definition: ad_region.h:35
Definition: ad_scene_geometry.h:47
Definition: ad_scene.h:50
Definition: ad_waypoint_group.h:35
Definition: coll_templ.h:345
Definition: base_dynamic_buffer.h:35
Definition: base_fader.h:36
Definition: base_game.h:79
Definition: base_object.h:49
Definition: base_point.h:36
Definition: base_viewport.h:37
Definition: script_stack.h:41
Definition: script_value.h:42
Definition: ui_window.h:39