C# Class RoomManager, Endure

Inheritance: MonoBehaviour
ファイルを表示 Open project: Endure-Game/Endure Class Usage Examples

Public Properties

Property Type Description
biomeNumber int
blockingCount Count,
blocks GameObject[]
buildingTiles GameObject[]
chestCount Count,
columns int
end int[]
enemySpawnInterval int
outerWallTiles GameObject[]
regions List
roomSide int
rows int
startScreen bool
tileMap ].Tile[

Public Methods

Method Description
Awake ( ) : void
GetRoom ( int x, int y ) : GameObject
LayoutObjectAtRandom ( GameObject tileArray, int minimum, int maximum ) : void
PlaceItem ( GameObject sprite, int x, int y ) : void
PlayerIsNear ( int x, int y ) : bool
SetGroundTile ( GameObject sprite, int x, int y ) : void
SetupRooms ( ) : void
TileMapGeneration ( ) : void
Update ( ) : void
checkForBlock ( Vector3 tile ) : bool
placePath ( float current, float next, float moveX, float moveY ) : void

Private Methods

Method Description
InitializeList ( float gridX, float gridY ) : List
RoomSetup ( int gridX, int gridY ) : GameObject
getBiome ( int x, int y ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

GetRoom() public method

public GetRoom ( int x, int y ) : GameObject
x int
y int
return GameObject

LayoutObjectAtRandom() public method

public LayoutObjectAtRandom ( GameObject tileArray, int minimum, int maximum ) : void
tileArray GameObject
minimum int
maximum int
return void

PlaceItem() public method

public PlaceItem ( GameObject sprite, int x, int y ) : void
sprite GameObject
x int
y int
return void

PlayerIsNear() public method

public PlayerIsNear ( int x, int y ) : bool
x int
y int
return bool

SetGroundTile() public method

public SetGroundTile ( GameObject sprite, int x, int y ) : void
sprite GameObject
x int
y int
return void

SetupRooms() public method

public SetupRooms ( ) : void
return void

TileMapGeneration() public method

public TileMapGeneration ( ) : void
return void

Update() public method

public Update ( ) : void
return void

checkForBlock() public method

public checkForBlock ( Vector3 tile ) : bool
tile Vector3
return bool

placePath() public method

public placePath ( float current, float next, float moveX, float moveY ) : void
current float
next float
moveX float
moveY float
return void

Property Details

biomeNumber public_oe property

public int biomeNumber
return int

blockingCount public_oe property

public Count, blockingCount
return Count,

blocks public_oe property

public GameObject[] blocks
return GameObject[]

buildingTiles public_oe property

public GameObject[] buildingTiles
return GameObject[]

chestCount public_oe property

public Count, chestCount
return Count,

columns public_oe property

public int columns
return int

end public_oe property

public int[] end
return int[]

enemySpawnInterval public_oe property

public int enemySpawnInterval
return int

outerWallTiles public_oe property

public GameObject[] outerWallTiles
return GameObject[]

regions public_oe property

public List regions
return List

roomSide public_oe property

public int roomSide
return int

rows public_oe property

public int rows
return int

startScreen public_oe property

public bool startScreen
return bool

tileMap public_oe property

public Tile[,] tileMap
return ].Tile[