C# 클래스 TileGenerator.TileRectangleCombiner

Combines Tile Rectangles into 2x2, 2x1, 1x2, and 1x1 rectangles
파일 보기 프로젝트 열기: Jewelots/Spelunky-Tiles

공개 메소드들

메소드 설명
Combine ( TileManager tileManager ) : List

비공개 메소드들

메소드 설명
CheckFor1x2 ( int x, int y, int>.List &checkedList, TileManager tileManager ) : bool

Check if a 1x2 chunk would fit

CheckFor2x1 ( int x, int y, int>.List &checkedList, TileManager tileManager ) : bool

Check if a 2x1 chunk would fit

CheckFor2x2 ( int x, int y, int>.List &checkedList, TileManager tileManager ) : bool

Check if a 2x2 chunk would fit

Create1x2 ( int x, int y, List &tileRectList, int>.List &checkedList ) : void

Create a 1x2 chunk in a location

Create2x1 ( int x, int y, List &tileRectList, int>.List &checkedList ) : void

Create a 2x1 chunk in a location

Create2x2 ( int x, int y, List &tileRectList, int>.List &checkedList ) : void

Create a 2x2 chunk in a location

Create2x2Chunks ( List &tileRectList, int>.List &checkedList, TileManager tileManager ) : void

Find any 2x2 areas and attempts to merge them into chunks

CreateOtherChunks ( List &tileRectList, int>.List &checkedList, TileManager tileManager ) : void

Find any 2x1 or 1x2 areas and attempts to merge them into chunks

Generate1x1Chunks ( List &tileRectList, int>.List &checkedList, TileManager tileManager ) : void

Generate all remaining 1x1 areas

메소드 상세

Combine() 공개 정적인 메소드

public static Combine ( TileManager tileManager ) : List
tileManager TileManager
리턴 List