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 {
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()) {
334 void printDebugInfo(
Console *con)
const;
356#pragma mark ScreenItemList
361 size_type _unsorted[250];
Definition: rational.h:40
Definition: celobj32.h:242
Definition: plane32.h:103
Definition: screen_item32.h:53
void calcRects(const Plane &plane)
bool _drawBlackLines
Definition: screen_item32.h:215
Common::Point _scaledPosition
Definition: screen_item32.h:201
Common::ScopedPtr< CelObj > _celObj
Definition: screen_item32.h:135
Common::Rect getNowSeenRect(const Plane &plane) const
Ratio _ratioX
Definition: screen_item32.h:196
Common::Point _position
Definition: screen_item32.h:155
uint32 _creationId
Definition: screen_item32.h:124
int16 _priority
Definition: screen_item32.h:149
Common::Rect _screenRect
Definition: screen_item32.h:208
bool _fixedPriority
Definition: screen_item32.h:142
CelObj & getCelObj() const
GuiResourceId _pictureId
Definition: screen_item32.h:168
reg_t _plane
Definition: screen_item32.h:72
bool _mirrorX
Definition: screen_item32.h:189
int _created
Definition: screen_item32.h:179
ScaleInfo _scale
Definition: screen_item32.h:78
void update(const reg_t object)
CelInfo32 _celInfo
Definition: screen_item32.h:129
reg_t _object
Definition: screen_item32.h:162
Definition: screen_item32.h:359
Definition: seg_manager.h:48
Definition: celobj32.h:64
Definition: screen_item32.h:37
Definition: vm_types.h:39