46 #ifndef AGS_SHARED_GAME_ROOM_INFO_H 47 #define AGS_SHARED_GAME_ROOM_INFO_H 49 #include "common/std/memory.h" 50 #include "ags/lib/allegro.h" 51 #include "ags/shared/ac/common_defines.h" 52 #include "ags/shared/game/interactions.h" 53 #include "ags/shared/util/geometry.h" 54 #include "ags/shared/util/string.h" 77 kRoomVolumeQuietest = -3,
78 kRoomVolumeQuieter = -2,
79 kRoomVolumeQuiet = -1,
80 kRoomVolumeNormal = 0,
82 kRoomVolumeLouder = 2,
83 kRoomVolumeLoudest = 3,
85 kRoomVolumeExtra1 = 4,
86 kRoomVolumeExtra2 = 5,
88 kRoomVolumeMin = kRoomVolumeQuietest,
89 kRoomVolumeMax = kRoomVolumeExtra2,
94 kRoomFlag_BkgFrameLocked = 0x01
98 #define NOT_VECTOR_SCALED -10000 100 #define NO_GAME_ID_IN_ROOM_FILE 16325 102 #define MAX_ROOM_BGFRAMES 5 // max number of frames in animating bg scene 104 #define MAX_ROOM_HOTSPOTS 50 // v2.62: 20 -> 30; v2.8: -> 50 105 #define MAX_ROOM_OBJECTS_v300 40 // for some legacy logic support 106 #define MAX_ROOM_OBJECTS 256 // v3.6.0: 40 -> 256 (now limited by room format) 107 #define MAX_ROOM_REGIONS 16 108 #define MAX_WALK_AREAS 16 109 #define MAX_WALK_BEHINDS 16 111 #define MAX_MESSAGES 100 129 bool SaveLoadDisabled;
135 RoomVolumeMod MusicVolume;
148 bool IsPaletteShared;
220 int32_t CharacterView;
245 #define MSG_DISPLAYNEXT 0x01 // supercedes using alt-200 at end of message 246 #define MSG_TIMELIMIT 0x02 257 enum RoomResolutionType {
275 inline bool IsRelativeRes()
const {
276 return _resolution != kRoomRealRes;
279 inline bool IsLegacyHiRes()
const {
280 return _resolution == kRoomHiRes;
283 inline RoomResolutionType GetResolutionType()
const {
296 void SetResolution(RoomResolutionType type);
299 Bitmap *GetMask(RoomAreaMask mask)
const;
301 float GetMaskScale(RoomAreaMask mask)
const;
305 bool HasRegionLightLevel(
int id)
const;
307 bool HasRegionTint(
int id)
const;
309 int GetRegionLightLevel(
int id)
const;
311 int GetRegionTintLuminance(
int id)
const;
326 int32_t MaskResolution;
337 int32_t BackgroundBPP;
347 PBitmap WalkAreaMask;
348 PBitmap WalkBehindMask;
355 size_t WalkAreaCount;
357 size_t WalkBehindCount;
362 String Messages[MAX_MESSAGES];
373 PScript CompiledScript;
379 RoomResolutionType _resolution;
387 void UpscaleRoomBackground(
RoomStruct *room,
bool game_is_hires);
392 PBitmap FixBitmap(PBitmap bmp,
int dst_width,
int dst_height);
Definition: achievements_tables.h:27
Definition: room_struct.h:218
Definition: interactions.h:154
Definition: room_struct.h:248
Definition: allegro_bitmap.h:44
Definition: room_struct.h:180
Definition: geometry.h:87
Definition: room_struct.h:202
Definition: room_struct.h:236
Definition: room_struct.h:143
Definition: room_struct.h:165
Definition: room_struct.h:269
Definition: room_struct.h:154
Definition: room_struct.h:123
Definition: atari-screen.h:44