22#ifndef SCI_ENGINE_SELECTOR_H
23#define SCI_ENGINE_SELECTOR_H
25#include "common/scummsys.h"
27#include "sci/engine/vm_types.h"
28#include "sci/engine/vm.h"
35 memset(
this, 0,
sizeof(*
this));
42 Selector view, loop,
cel;
44 Selector nsTop, nsLeft, nsBottom,
nsRight;
45 Selector lsTop, lsLeft, lsBottom,
lsRight;
48 Selector brTop, brLeft, brBottom,
brRight;
55 Selector state, font,
type;
71 Selector b_movCnt, b_i1, b_i2, b_di, b_xAxis,
b_incr;
95 Selector subtitleLang;
120 Selector scaleSignal;
152 Selector top, left, bottom, right;
159 Selector borderColor;
162 Selector fixPriority;
167 Selector useInsetRect;
168 Selector inTop, inLeft, inBottom, inRight;
169 Selector textTop, textLeft, textBottom, textRight;
170 Selector title, titleFont, titleFore, titleBack;
181 Selector musicVolume;
182 Selector soundVolume;
186 Selector displayValue;
190 Selector eachElementDo;
191 Selector physicalBar;
195 Selector reallyRestore;
198 Selector description;
200 Selector masterVolume;
209#define SELECTOR(_slc_) (g_sci->getKernel()->_selectorCache._slc_)
221#define readSelectorValue(segMan, _obj_, _slc_) (readSelector(segMan, _obj_, _slc_).getOffset())
233#define writeSelectorValue(segMan, _obj_, _slc_, _val_) writeSelector(segMan, _obj_, _slc_, make_reg(0, _val_))
239 int k_argc,
StackPtr k_argp,
int argc = 0,
const reg_t *argv = 0);
248void updateInfoFlagViewVisible(
Object *obj,
int index,
bool fromPropertyOp =
false);
Definition: seg_manager.h:48
Out move(In first, In last, Out dst)
Definition: algorithm.h:109
void invokeSelector(EngineState *s, reg_t object, int selectorId, int k_argc, StackPtr k_argp, int argc=0, const reg_t *argv=0)
reg_t readSelector(SegManager *segMan, reg_t object, Selector selectorId)
void writeSelector(SegManager *segMan, reg_t object, Selector selectorId, reg_t value)
Definition: selector.h:33
Selector b_incr
Various Bresenham vars.
Definition: selector.h:71
Selector topString
SCI1 scroll lists use this instead of lsTop. Removed in SCI3.
Definition: selector.h:111
Selector dataInc
Used to sync music with animations, removed in SCI3.
Definition: selector.h:99
Selector moveSpeed
Used for DoBresen.
Definition: selector.h:74
Selector _info_
Removed in SCI3.
Definition: selector.h:39
Selector printLang
Used for i18n.
Definition: selector.h:94
Selector scaleY
SCI1.1 view scaling.
Definition: selector.h:121
Selector text
Used by controls.
Definition: selector.h:50
Selector illegalBits
Used by CanBeHere.
Definition: selector.h:47
Selector vanishingX
SCI1.1 view scaling, used by global scaling.
Definition: selector.h:123
Selector looper
Used in DoAvoider.
Definition: selector.h:78
Selector nsRight
View boundaries ('now seen')
Definition: selector.h:44
Selector underBits
Used by the graphics subroutines to store backupped BG pic data.
Definition: selector.h:43
Selector moveDone
used for DoBresen
Definition: selector.h:107
Selector modifiers
Used by GetEvent.
Definition: selector.h:80
Selector message
Used by GetEvent.
Definition: selector.h:62
Selector brRight
Bounding Rectangle.
Definition: selector.h:48
Selector palette
Used by the SCI0-SCI1.1 animate code, unused in SCI2-SCI2.1, removed in SCI3.
Definition: selector.h:98
Selector doit
Called (!) by the Animate() system call.
Definition: selector.h:77
Selector iconIndex
Used to index icon bar objects.
Definition: selector.h:130
Selector replay
Replay function.
Definition: selector.h:81
Selector dy
Deltas.
Definition: selector.h:70
Selector vanishingY
SCI1.1 view scaling, used by global scaling.
Definition: selector.h:124
Selector lsRight
Used by Animate() subfunctions and scroll list controls.
Definition: selector.h:45
Selector min
SMPTE time format.
Definition: selector.h:101
Selector cursor
Used by EditControl.
Definition: selector.h:57
Selector mode
Used by text controls (-> DrawControl())
Definition: selector.h:53
Selector signal
Used by Animate() to control a view's behavior.
Definition: selector.h:46
Selector points
Used by AvoidPath()
Definition: selector.h:97
Selector yLast
BR last position of client.
Definition: selector.h:73
Selector nodePtr
Replaces handle in SCI1+.
Definition: selector.h:68
Selector client
The object that wants to be moved.
Definition: selector.h:69
Selector delete_
Called by Animate() to dispose a view object.
Definition: selector.h:88
Selector overlay
Used to determine if a game is using old gfx functions or not.
Definition: selector.h:127
Selector cantBeHere
Checks for movement avoidance in SCI1+. Replaces canBeHere.
Definition: selector.h:110
Selector type
Used by controls.
Definition: selector.h:55
Selector claimed
Used generally by the event mechanism.
Definition: selector.h:86
Selector max
Used by EditControl, removed in SCI3.
Definition: selector.h:58
Selector maxScale
SCI1.1 view scaling, limit for cel, when using global scaling.
Definition: selector.h:122
Selector yStep
BR adjustments.
Definition: selector.h:72
Selector handle
Replaced by nodePtr in SCI1+.
Definition: selector.h:67
Selector cel
Description of a specific image.
Definition: selector.h:42
Selector mover
Used in DoAvoider.
Definition: selector.h:76
Selector syntaxFail
Used by Parse()
Definition: selector.h:83
Selector syncCue
Used by DoSync()
Definition: selector.h:116
Selector elements
Used by SetSynonyms()
Definition: selector.h:51
Selector play
Play function (first function to be called)
Definition: selector.h:64
Selector canBeHere
Funcselector: Checks for movement validity in SCI0.
Definition: selector.h:75
Definition: vm_types.h:39