22 #ifndef SCI_GRAPHICS_SCREEN_ITEM32_H 23 #define SCI_GRAPHICS_SCREEN_ITEM32_H 25 #include "common/rect.h" 26 #include "sci/graphics/celobj32.h" 27 #include "sci/graphics/lists32.h" 33 kScaleSignalManual = 1,
34 kScaleSignalVanishingPoint = 2
39 ScaleSignals32 signal;
40 ScaleInfo() : x(128), y(128), max(100), signal(kScaleSignalNone) {}
48 #pragma mark ScreenItem 59 static uint16 _nextObjectId;
66 static uint32 _nextCreationId;
116 void setFromObject(
SegManager *segMan,
const reg_t object,
const bool updateCel,
const bool updateBitmap);
229 inline bool operator<(
const ScreenItem &other)
const {
235 if (_position.
y + _z < other.
_position.
y + other._z) {
239 if (_position.
y + _z == other.
_position.
y + other._z) {
246 if (other.
_object.isNumber() && !_object.isNumber()) {
278 inline bool operator>(
const ScreenItem &other)
const {
284 if (_position.
y + _z > other.
_position.
y + other._z) {
288 if (_position.
y + _z == other.
_position.
y + other._z) {
289 if (_object.isNumber() && !other.
_object.isNumber()) {
302 inline bool hasPriorityAbove(
const ScreenItem &other)
const {
308 if (_object.isNumber() && !other.
_object.isNumber()) {
326 void calcRects(
const Plane &plane);
332 CelObj &getCelObj()
const;
334 void printDebugInfo(
Console *con)
const;
339 void update(
const reg_t object);
356 #pragma mark ScreenItemList 361 size_type _unsorted[250];
371 #endif // SCI_GRAPHICS_SCREEN_ITEM32_H Ratio _ratioX
Definition: screen_item32.h:196
bool _mirrorX
Definition: screen_item32.h:189
ScaleInfo _scale
Definition: screen_item32.h:78
Definition: screen_item32.h:359
bool _fixedPriority
Definition: screen_item32.h:142
Definition: plane32.h:103
reg_t _plane
Definition: screen_item32.h:72
CelInfo32 _celInfo
Definition: screen_item32.h:129
Definition: rational.h:40
int _created
Definition: screen_item32.h:179
Common::Point _position
Definition: screen_item32.h:155
Definition: screen_item32.h:37
Definition: celobj32.h:64
Common::ScopedPtr< CelObj > _celObj
Definition: screen_item32.h:135
Definition: celobj32.h:242
Common::Rect _screenRect
Definition: screen_item32.h:208
Definition: seg_manager.h:48
GuiResourceId _pictureId
Definition: screen_item32.h:168
reg_t _object
Definition: screen_item32.h:162
int16 y
Definition: rect.h:47
int16 _priority
Definition: screen_item32.h:149
Definition: screen_item32.h:53
void sort(T first, T last, StrictWeakOrdering comp)
Definition: algorithm.h:349
Definition: vm_types.h:39
uint32 _creationId
Definition: screen_item32.h:124
Common::Point _scaledPosition
Definition: screen_item32.h:201
bool _drawBlackLines
Definition: screen_item32.h:215