Documentation
¶
Index ¶
- Variables
- type Room
- func (r *Room) AddDoorRand_E(rnd *g2rand.G2Rand, wallrect rect.Rect, doortile tile_flag.TileFlag, ...)
- func (r *Room) AddDoorRand_N(rnd *g2rand.G2Rand, wallrect rect.Rect, doortile tile_flag.TileFlag, ...)
- func (r *Room) AddDoorRand_S(rnd *g2rand.G2Rand, wallrect rect.Rect, doortile tile_flag.TileFlag, ...)
- func (r *Room) AddDoorRand_W(rnd *g2rand.G2Rand, wallrect rect.Rect, doortile tile_flag.TileFlag, ...)
- func (r *Room) AddWindowRand_E(rnd *g2rand.G2Rand, wallrect rect.Rect, wintile tile_flag.TileFlag)
- func (r *Room) AddWindowRand_N(rnd *g2rand.G2Rand, wallrect rect.Rect, wintile tile_flag.TileFlag)
- func (r *Room) AddWindowRand_S(rnd *g2rand.G2Rand, wallrect rect.Rect, wintile tile_flag.TileFlag)
- func (r *Room) AddWindowRand_W(rnd *g2rand.G2Rand, wallrect rect.Rect, wintile tile_flag.TileFlag)
- func (r *Room) DrawMaze(rnd *g2rand.G2Rand, xn, yn int, walltile tile_flag.TileFlag, connerFill bool) error
- func (r *Room) DrawRectWall(rnd *g2rand.G2Rand, walltile tile_flag.TileFlag, terrace bool) error
- func (r *Room) DrawWall_E(wallrect rect.Rect, walltile tile_flag.TileFlag)
- func (r *Room) DrawWall_N(wallrect rect.Rect, walltile tile_flag.TileFlag)
- func (r *Room) DrawWall_S(wallrect rect.Rect, walltile tile_flag.TileFlag)
- func (r *Room) DrawWall_W(wallrect rect.Rect, walltile tile_flag.TileFlag)
- func (r *Room) GetUUID() string
- func (r *Room) RndDoorOuter(rnd *g2rand.G2Rand) [2]int
- func (r *Room) RndPos(rnd *g2rand.G2Rand) (int, int)
- func (r Room) String() string
- func (info *Room) StringForm() string
Constants ¶
This section is empty.
Variables ¶
View Source
var RoomIDMaker = idu64str.New("RoomID")
Functions ¶
This section is empty.
Types ¶
type Room ¶
type Room struct { UUID string BgTile tile_flag.TileFlag Area rect.Rect Tiles [][]tile_flag.TileFlag ConnectPos [][2]int // door outer pos , out of room area // for sort RecyclerCount int PortalCount int TrapCount int RotateLineAttackCount int MineCount int }
func (*Room) AddDoorRand_E ¶
func (*Room) AddDoorRand_N ¶
func (*Room) AddDoorRand_S ¶
func (*Room) AddDoorRand_W ¶
func (*Room) AddWindowRand_E ¶
func (*Room) AddWindowRand_N ¶
func (*Room) AddWindowRand_S ¶
func (*Room) AddWindowRand_W ¶
func (*Room) DrawRectWall ¶
func (*Room) DrawWall_E ¶
func (*Room) DrawWall_N ¶
func (*Room) DrawWall_S ¶
func (*Room) DrawWall_W ¶
func (*Room) StringForm ¶
Click to show internal directories.
Click to hide internal directories.