> For the complete documentation index, see [llms.txt](https://docs.moddingofisaac.com/ab_p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moddingofisaac.com/ab_p/beta/docs/room.md).

# Class "Room"

## Functions

### CheckLine () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean CheckLine ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos1, [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos2, LinecheckMode Mode, int GridPathThreshold, boolean IgnoreWalls, boolean IgnoreCrushable ) {: .copyable aria-label='Functions' }

returns true if there is a direct line of sight between Pos1 and Pos2 returns false if the line is obstructed

???- note "Notes" LinecheckModes: 0 : makes the line check collide with anything that impedes ground movement 1 : is a cheaper version of 0, but is not as reliable 2 : is used for explosions, it only collides with walls and indestructible blocks 3 : is a line check that only collides with obstacles that can block projectiles

### DamageGrid () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean DamageGrid ( int Index, int Damage ) {: .copyable aria-label='Functions' }

Damage Grid Entities currently this concerns [GridEntityPoop](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntityPoop/README.md) and GridEntity\_Fire returns true if damageable entity was found (and possibly damaged) return false if not used by tears, bombs, some NPCs, etc

### DestroyGrid () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean DestroyGrid ( int Index, boolean Immediate ) {: .copyable aria-label='Functions' }

calls DamageGrid internally to damage Poop/Fire removes rocks and opens secret doors returns true if something was destroyed returns false if not used for explosions mostly

### EmitBloodFromWalls () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void EmitBloodFromWalls ( int Duration, int Count ) {: .copyable aria-label='Functions' }

### FindFreePickupSpawnPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) FindFreePickupSpawnPosition ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, float InitialStep, boolean AvoidActiveEntities ) {: .copyable aria-label='Functions' }

Starting from Pos, will try to find a free spawn position where a newly spawned pickup item will not collide with already spawned pickup items, or solid grid elements such as rocks, or pits The returned position will be aligned to the grid. If no free position is found, the original position (aligned to the grid) is returned.

### FindFreeTilePosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) FindFreeTilePosition ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, float DistanceThreshold ) {: .copyable aria-label='Functions' }

Finds the nearest free tile based on position Stops immediately if the tile sampled has a squared distance less than DistanceThresholdSQ

### GetAliveBossesCount () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetAliveBossesCount ( ) {: .copyable aria-label='Functions' }

### GetAliveEnemiesCount () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetAliveEnemiesCount ( ) {: .copyable aria-label='Functions' }

### GetAwardSeed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetAwardSeed ( ) {: .copyable aria-label='Functions' }

### GetBackdropType () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### Backdrop::Backdrop GetBackdropType ( ) {: .copyable aria-label='Functions' }

Returns the BackdropType (Background) of the current room.

???- note "Notes" BackdropTypes

```
ID
Backdrop

ID
Backdrop


1
Basement

15
Cathedral


2
Cellar

16
Dark Room


3
Burning Basement

17
Chest


4
Caves

18
Mega Satan


5
Catacombs

19
Library


6
Drowned Caves

20
Shop


7
Depths

21
Isaacs Room


8
Necropolis

22
Barren Room


9
Dank Depths

23
Secret Room


10
Womb

24
Dice Room


11
Utero

25
Arcade


12
Scarred Womb

26
Error Room


13
Blue Womb (Hush)

27
Blue Secret


14
Sheol

28
Ultra Greed Shop
```

### GetBossID () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### BossId GetBossID ( ) {: .copyable aria-label='Functions' }

This will return the subtype of the current room, since this value is used to determine the boss-portrait to display when entering.

### GetBottomRightPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetBottomRightPos ( ) {: .copyable aria-label='Functions' }

returns bottom right position inside of walls

### GetBrokenWatchState () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetBrokenWatchState ( ) {: .copyable aria-label='Functions' }

### GetCenterPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetCenterPos ( ) {: .copyable aria-label='Functions' }

returns the room center position

### GetClampedGridIndex () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetClampedGridIndex ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Position ) {: .copyable aria-label='Functions' }

converts float position (x,y) to grid index (similar to ingrid) clamps the values if out of bounds

### GetClampedPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetClampedPosition ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, float Margin ) {: .copyable aria-label='Functions' }

returns Pos clamped to room borders inside of walls

### GetDecorationSeed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetDecorationSeed ( ) {: .copyable aria-label='Functions' }

### GetDeliriumDistance () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetDeliriumDistance ( ) {: .copyable aria-label='Functions' }

### GetDevilRoomChance () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### float GetDevilRoomChance ( ) {: .copyable aria-label='Functions' }

### GetDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [GridEntityDoor](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntityDoor/README.md) GetDoor ( [DoorSlot](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/DoorSlot/README.md) Slot ) {: .copyable aria-label='Functions' }

### GetDoorSlotPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetDoorSlotPosition ( [DoorSlot](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/DoorSlot/README.md) Slot ) {: .copyable aria-label='Functions' }

### GetDungeonRockIdx () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetDungeonRockIdx ( ) {: .copyable aria-label='Functions' }

### GetEntities () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [EntityList](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/CppContainer_EntityList/README.md) GetEntities ( ) {: .copyable aria-label='Functions' }

### GetFrameCount () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetFrameCount ( ) {: .copyable aria-label='Functions' }

### GetGridCollision () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) GetGridCollision ( int GridIndex ) {: .copyable aria-label='Functions' }

Returns the [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) of the grid entity at this grid index.

### GetGridCollisionAtPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) GetGridCollisionAtPos ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos ) {: .copyable aria-label='Functions' }

Returns the [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) of the grid entity at this position in the room.

### GetGridEntity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [GridEntity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntity/README.md) GetGridEntity ( int Index ) {: .copyable aria-label='Functions' }

Returns the [GridEntity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntity/README.md) at this grid index.

### GetGridEntityFromPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [GridEntity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntity/README.md) GetGridEntityFromPos ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Position ) {: .copyable aria-label='Functions' }

Returns the [GridEntity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntity/README.md) at this position in the room.

### GetGridHeight () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridHeight ( ) {: .copyable aria-label='Functions' }

### GetGridIndex () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridIndex ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Position ) {: .copyable aria-label='Functions' }

converts float position (x,y) to grid index returns -1 for invalid index

### GetGridPath () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridPath ( int Index ) {: .copyable aria-label='Functions' }

### GetGridPathFromPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridPathFromPos ( int Index ) {: .copyable aria-label='Functions' }

### GetGridPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetGridPosition ( int GridIndex ) {: .copyable aria-label='Functions' }

converts grid index to float (x,y) position undefined behaviour for invalid index

### GetGridSize () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridSize ( ) {: .copyable aria-label='Functions' }

### GetGridWidth () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetGridWidth ( ) {: .copyable aria-label='Functions' }

### GetLaserTarget () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetLaserTarget ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Dir ) {: .copyable aria-label='Functions' }

returns the hit position for a laser beam (Technology, Robo-Baby) usually, the first poop, fire, rock, TNT, or wall encountered on a straight line

### GetLightingAlpha () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### float GetLightingAlpha ( ) {: .copyable aria-label='Functions' }

### GetLRoomAreaDesc () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### LRoomAreaDesc GetLRoomAreaDesc ( ) {: .copyable aria-label='Functions' }

### GetLRoomTileDesc () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### LRoomTileDesc GetLRoomTileDesc ( ) {: .copyable aria-label='Functions' }

### GetNextShockwaveId () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetNextShockwaveId ( ) {: .copyable aria-label='Functions' }

### GetRandomPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetRandomPosition ( float Margin ) {: .copyable aria-label='Functions' }

returns random non tile aligned position

### GetRandomTileIndex () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetRandomTileIndex ( int Seed ) {: .copyable aria-label='Functions' }

### GetRedHeartDamage () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean GetRedHeartDamage ( ) {: .copyable aria-label='Functions' }

### GetRenderScrollOffset () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetRenderScrollOffset ( ) {: .copyable aria-label='Functions' }

The camera scroll offset and screen shake offsets are both represented here.

### GetRenderSurfaceTopLeft () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetRenderSurfaceTopLeft ( ) {: .copyable aria-label='Functions' }

The position the floor and wall textures will be rendered at.

### GetRoomConfigStage () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### RoomConfig::Stage GetRoomConfigStage ( ) {: .copyable aria-label='Functions' }

returns the original stage the room was designed for (useful for The Void)

### GetRoomShape () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [RoomShape](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/RoomShape/README.md) GetRoomShape ( ) {: .copyable aria-label='Functions' }

### GetSecondBossID () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### BossId GetSecondBossID ( ) {: .copyable aria-label='Functions' }

### GetSeededCollectible () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [CollectibleType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/CollectibleType/README.md) GetSeededCollectible ( int Seed ) {: .copyable aria-label='Functions' }

### GetShopLevel () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetShopLevel ( ) {: .copyable aria-label='Functions' }

### GetSpawnSeed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetSpawnSeed ( ) {: .copyable aria-label='Functions' }

### GetTintedRockIdx () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### int GetTintedRockIdx ( ) {: .copyable aria-label='Functions' }

### GetTopLeftPos () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) GetTopLeftPos ( ) {: .copyable aria-label='Functions' }

returns top left position inside of walls

### GetType () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [RoomType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/RoomType/README.md) GetType ( ) {: .copyable aria-label='Functions' }

### HasSlowDown () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean HasSlowDown ( ) {: .copyable aria-label='Functions' }

### HasTriggerPressurePlates () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean HasTriggerPressurePlates ( ) {: .copyable aria-label='Functions' }

### HasWater () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean HasWater ( ) {: .copyable aria-label='Functions' }

### HasWaterPits () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean HasWaterPits ( ) {: .copyable aria-label='Functions' }

### IsAmbushActive () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsAmbushActive ( ) {: .copyable aria-label='Functions' }

### IsAmbushDone () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsAmbushDone ( ) {: .copyable aria-label='Functions' }

### IsClear () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsClear ( ) {: .copyable aria-label='Functions' }

### IsCurrentRoomLastBoss () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsCurrentRoomLastBoss ( ) {: .copyable aria-label='Functions' }

### IsDoorSlotAllowed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsDoorSlotAllowed ( [DoorSlot](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/DoorSlot/README.md) Slot ) {: .copyable aria-label='Functions' }

Returns whether this room design may have a door at a given position, disregarding whether those doors exist.

### IsFirstEnemyDead () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsFirstEnemyDead ( ) {: .copyable aria-label='Functions' }

### IsFirstVisit () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsFirstVisit ( ) {: .copyable aria-label='Functions' }

### IsInitialized () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsInitialized ( ) {: .copyable aria-label='Functions' }

### IsLShapedRoom () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsLShapedRoom ( ) {: .copyable aria-label='Functions' }

### IsPositionInRoom () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsPositionInRoom ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, float Margin ) {: .copyable aria-label='Functions' }

### IsSacrificeDone () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean IsSacrificeDone ( ) {: .copyable aria-label='Functions' }

### KeepDoorsClosed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void KeepDoorsClosed ( ) {: .copyable aria-label='Functions' }

### MamaMegaExplossion () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void MamaMegaExplossion ( ) {: .copyable aria-label='Functions' }

### PlayMusic () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void PlayMusic ( ) {: .copyable aria-label='Functions' }

### RemoveDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void RemoveDoor ( [DoorSlot](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/DoorSlot/README.md) Slot ) {: .copyable aria-label='Functions' }

### RemoveGridEntity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void RemoveGridEntity ( int GridIndex, int PathTrail, boolean KeepDecoration ) {: .copyable aria-label='Functions' }

### Render () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void Render ( ) {: .copyable aria-label='Functions' }

### RespawnEnemies () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void RespawnEnemies ( ) {: .copyable aria-label='Functions' }

for D7 collectible

### ScreenWrapPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) ScreenWrapPosition ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Pos, float Margin ) {: .copyable aria-label='Functions' }

Returns Pos, screen-wrapped (if it is just outside the room on the right it will be moved to the left side of the room, etc)

???- note "Notes" This only wraps the point once, so if it has crossed multiple wrapping planes it will only wrap on the one it's closest to. For wrapping a position that has crossed two planes (outside a room in the top left for instance) call this function iteratively.

### SetAmbushDone () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetAmbushDone ( boolean Value ) {: .copyable aria-label='Functions' }

### SetBrokenWatchState () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetBrokenWatchState ( int State ) {: .copyable aria-label='Functions' }

### SetCardAgainstHumanity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetCardAgainstHumanity ( ) {: .copyable aria-label='Functions' }

### SetClear () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetClear ( boolean Clear ) {: .copyable aria-label='Functions' }

Needed for angel room, so the clear flag can be set to false when the angel spawns void SetClear(bool Clear) {m\_Desc->Clear = Clear;}

### SetFirstEnemyDead () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetFirstEnemyDead ( boolean Value ) {: .copyable aria-label='Functions' }

### SetFloorColor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetFloorColor ( [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) FloorColor ) {: .copyable aria-label='Functions' }

Allows you to apply a color modifier to the floor texture of the current room.

???- example "Example Code" This code changes the floorcolor to red.

```lua
    Game():GetRoom():SetFloorColor(Color(1,1,1,1,255,0,0))
```

### SetGridPath () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean SetGridPath ( int Index, int Value ) {: .copyable aria-label='Functions' }

### SetRedHeartDamage () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetRedHeartDamage ( ) {: .copyable aria-label='Functions' }

### SetSacrificeDone () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetSacrificeDone ( boolean Done ) {: .copyable aria-label='Functions' }

### SetShockwaveParam () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetShockwaveParam ( int ShockwaveId, [ShockwaveParams](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ShockwaveParams/README.md) Params ) {: .copyable aria-label='Functions' }

### SetSlowDown () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetSlowDown ( int Duration ) {: .copyable aria-label='Functions' }

### SetWallColor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SetWallColor ( [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) WallColor ) {: .copyable aria-label='Functions' }

Allows you to apply a color modifier to the wall texture of the current room.

???- example "Example Code" This code changes the wallcolor to red.

```lua
    Game():GetRoom():SetWallColor(Color(1,1,1,1,255,0,0))
```

### ShopReshuffle () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void ShopReshuffle ( boolean KeepCollectibleIdx, boolean ReselectSaleItem ) {: .copyable aria-label='Functions' }

### ShopRestockFull () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void ShopRestockFull ( ) {: .copyable aria-label='Functions' }

### ShopRestockPartial () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void ShopRestockPartial ( ) {: .copyable aria-label='Functions' }

### SpawnClearAward () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void SpawnClearAward ( ) {: .copyable aria-label='Functions' }

### SpawnGridEntity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean SpawnGridEntity ( int GridIndex, [GridEntityType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridEntityType/README.md) Type, int Variant, int Seed, int VarData ) {: .copyable aria-label='Functions' }

### TryMakeBridge () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TryMakeBridge ( [GridEntity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/GridEntity/README.md) pit ) {: .copyable aria-label='Functions' }

### TryPlaceLadder () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void TryPlaceLadder ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) PlayerPos, [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) PlayerVelocity, [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) Ladder ) {: .copyable aria-label='Functions' }

### TrySpawnBlueWombDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TrySpawnBlueWombDoor ( boolean FirstTime, boolean IgnoreTime ) {: .copyable aria-label='Functions' }

### TrySpawnBossRushDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TrySpawnBossRushDoor ( boolean IgnoreTime ) {: .copyable aria-label='Functions' }

### TrySpawnDevilRoomDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TrySpawnDevilRoomDoor ( boolean Animate ) {: .copyable aria-label='Functions' }

### TrySpawnMegaSatanRoomDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TrySpawnMegaSatanRoomDoor ( ) {: .copyable aria-label='Functions' }

### TrySpawnTheVoidDoor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### boolean TrySpawnTheVoidDoor ( ) {: .copyable aria-label='Functions' }

### TurnGold () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void TurnGold ( ) {: .copyable aria-label='Functions' }

### Update () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### void Update ( ) {: .copyable aria-label='Functions' }

Updates the current room.

???- note "Notes" Calling this function is NOT needed to apply changes! This function is pretty useless

### WorldToScreenPosition () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/room.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) WorldToScreenPosition ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) WorldPos ) {: .copyable aria-label='Functions' }

Converts an entity position to one that can be used to render to the screen.
