package game // move.c — hero movement. doorOpen arrives first (room entry needs it); // the movement commands and traps come with the UI phase. // doorOpen is called to wake up things in a room that might move when the // hero enters (move.c door_open). func (g *RogueGame) doorOpen(rp *Room) { if rp.Flags.Has(IsGone) { return } for y := rp.Pos.Y; y < rp.Pos.Y+rp.Max.Y; y++ { for x := rp.Pos.X; x < rp.Pos.X+rp.Max.X; x++ { if isUpper(g.Level.VisibleChar(y, x)) { g.wakeMonster(y, x) } } } }